public class ConnectorService extends Service
afterSend(Representation)
method for
example, just create a subclass and set it on your application with the
Application.setConnectorService(ConnectorService)
method.Constructor and Description |
---|
ConnectorService()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
afterSend(Representation entity)
Call-back method invoked by the client or server connectors just after
sending the response to the target component.
|
void |
beforeSend(Representation entity)
Call-back method invoked by the client or server connectors just before
sending the response to the target component.
|
java.util.List<Protocol> |
getClientProtocols()
Returns the modifiable list of required client protocols.
|
java.util.List<Protocol> |
getServerProtocols()
Returns the modifiable list of required server protocols.
|
void |
setClientProtocols(java.util.List<Protocol> clientProtocols)
Sets the modifiable list of required client protocols.
|
void |
setServerProtocols(java.util.List<Protocol> serverProtocols)
Sets the modifiable list of required server protocols.
|
createInboundFilter, createOutboundFilter, getContext, isEnabled, isStarted, isStopped, setContext, setEnabled, start, stop
public void afterSend(Representation entity)
entity
- The optional entity about to be committed.public void beforeSend(Representation entity)
entity
- The optional entity about to be committed.public java.util.List<Protocol> getClientProtocols()
public java.util.List<Protocol> getServerProtocols()
public void setClientProtocols(java.util.List<Protocol> clientProtocols)
clientProtocols
- A list of required client protocols.public void setServerProtocols(java.util.List<Protocol> serverProtocols)
serverProtocols
- A list of required server protocols.Copyright © 2005-2024 Restlet.