|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.restlet.service.Service
org.restlet.service.ConnectorService
public class ConnectorService
Service declaring client and server connectors. Implementation note: the parent component will ensure that client connectors won't automatically follow redirections. This will ensure a consistent behavior and portability of applications.
| Constructor Summary | |
|---|---|
ConnectorService()
Constructor. |
|
| Method Summary | |
|---|---|
void |
afterSend(Representation entity)
Call-back method invoked by the client or server connectors just after sending the entity to the target component. |
void |
beforeSend(Representation entity)
Call-back method invoked by the client or server connectors just before sending the entity to the target component. |
List<Protocol> |
getClientProtocols()
Returns the modifiable list of required client protocols. |
List<Protocol> |
getServerProtocols()
Returns the modifiable list of required server protocols. |
void |
setClientProtocols(List<Protocol> clientProtocols)
Sets the list of required client protocols. |
void |
setServerProtocols(List<Protocol> serverProtocols)
Sets he list of required server protocols. |
| Methods inherited from class org.restlet.service.Service |
|---|
isEnabled, isStarted, isStopped, setEnabled, start, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConnectorService()
| Method Detail |
|---|
public void afterSend(Representation entity)
entity - The entity about to be committed.public void beforeSend(Representation entity)
entity - The entity about to be committed.public List<Protocol> getClientProtocols()
public List<Protocol> getServerProtocols()
public void setClientProtocols(List<Protocol> clientProtocols)
clientProtocols - The list of required client protocols.public void setServerProtocols(List<Protocol> serverProtocols)
serverProtocols - The list of required server protocols.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||