public interface MessageInfo
This interface encapsulates a request message object and a response message object for a message exchange. This interface may also be used to associate additional context in the form of key/value pairs, with the encapsulated messages.
Every implementation of this interface should provide a zero argument constructor, and a constructor which takes a single Map argument. Additional constructors may also be provided.
Map
Modifier and Type | Method and Description |
---|---|
java.util.Map |
getMap()
Get (a reference to) the Map object of this MessageInfo.
|
java.lang.Object |
getRequestMessage()
Get the request message object from this MessageInfo.
|
java.lang.Object |
getResponseMessage()
Get the response message object from this MessageInfo.
|
void |
setRequestMessage(java.lang.Object request)
Set the request message object in this MessageInfo.
|
void |
setResponseMessage(java.lang.Object response)
Set the response message object in this MessageInfo.
|
java.lang.Object getRequestMessage()
java.lang.Object getResponseMessage()
void setRequestMessage(java.lang.Object request)
request
- An object representing the request message.void setResponseMessage(java.lang.Object response)
response
- An object representing the response message.java.util.Map getMap()