I - The type of the input this communication stack expects.O - The type of the response this communication stack returns.public interface CommunicationStack<I,O>
| Modifier and Type | Method and Description |
|---|---|
O |
process(java.net.URI remoteIdentifier,
I input)
Handles the request and returns the response.
|
void |
shutdown()
Initiate the shutdown of the communication stack.
|
O process(java.net.URI remoteIdentifier, I input) throws CommunicationStackException
It accepts the request as input, modifies it accordingly to the functionality this layer is meant for and delegates it to the lower communication stack layer. Beside it modifies the response returned by the lower communication stack layer and returns the result.
If this component is instructed to shutdown by calling
shutdown() this method returns immediately by
throwing a appropriate CommunicationStackException.
remoteIdentifier - The identifier of the object/service the request is
targeted at. This may be null in case the information
is not available for the communication service. This information
may also be provided by the input parameter (for instance in an
InvocationMessage.input - The request in the form of what this layer expects.CommunicationStackException - If there are problems processing the
request, a CommunicationStackException will be
thrown. This may encapsulate any occurred exception.void shutdown()