I1 - The type of the input to be transformed.I2 - The transformed type of the input.O1 - The type of the output to be transformed.O2 - The transformed type of the output.public interface CommStackInterceptor<I1,I2,O1,O2>
| Modifier and Type | Method and Description |
|---|---|
O2 |
process(java.net.URI remoteIdentifier,
I1 input,
CommunicationStack<I2,O1> commStack)
Intercepts the communication processing and forwards it to the designated communication stack.
|
void |
shutdown()
Initiate the shutdown of the communication stack interceptor.
|
O2 process(java.net.URI remoteIdentifier, I1 input, CommunicationStack<I2,O1> commStack) throws CommunicationStackException
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 interceptor expects.commStack - The communication stack to which to forward the processing.CommunicationStackException - If there are problems processing the request, a
CommunicationStackException will be thrown. This may encapsulate any
occurred exception.void shutdown()