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 |
---|---|
Map |
getMap()
Get (a reference to) the Map object of this MessageInfo.
|
Object |
getRequestMessage()
Get the request message object from this MessageInfo.
|
Object |
getResponseMessage()
Get the response message object from this MessageInfo.
|
void |
setRequestMessage(Object request)
Set the request message object in this MessageInfo.
|
void |
setResponseMessage(Object response)
Set the response message object in this MessageInfo.
|
Object getRequestMessage()
Object getResponseMessage()
void setRequestMessage(Object request)
request
- An object representing the request message.void setResponseMessage(Object response)
response
- An object representing the response message.Map getMap()
Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.