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 CommStackTransformer<I1,I2,O1,O2>
| Modifier and Type | Method and Description |
|---|---|
void |
shutdown()
Notifies the termination of this communication transformer.
|
I2 |
transformInput(java.net.URI remoteIdentifier,
I1 input)
Transforms the designated input of type
I1 to type I2. |
O2 |
transformOutput(java.net.URI remoteIdentifier,
O1 output)
Transforms the designated input of type
O1 to type O2. |
I2 transformInput(java.net.URI remoteIdentifier, I1 input) throws CommunicationStackException
I1 to type I2. This is used
in forward direction, i. e. request handling.remoteIdentifier - The URI identifying the object the communication call is meant for.input - The input that should be transformed.CommunicationStackException - If there are problems processing the input, a
CommunicationStackException will be thrown. This may encapsulate any
occurred exception.O2 transformOutput(java.net.URI remoteIdentifier, O1 output) throws CommunicationStackException
O1 to type O2. This is used
in backward direction, i. e. reply handling.remoteIdentifier - The URI identifying the object the communication call is meant for.output - The output that is returned by the lower communication stack layer that should be
transformed.CommunicationStackException - If there are problems processing the output, a
CommunicationStackException will be thrown. This may encapsulate any
occurred exception.void shutdown()