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.
|
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 modifiable list of required client protocols.
|
void |
setServerProtocols(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 List<Protocol> getClientProtocols()
public List<Protocol> getServerProtocols()
public void setClientProtocols(List<Protocol> clientProtocols)
clientProtocols
- A list of required client protocols.Copyright © 2005–2014. All rights reserved.