MessageType
- the message type of the message contextpublic class MessageContext<MessageType> extends BaseContext
Additional information associated with the message represented by the context may be held by the context as subordinate subcontext instances. Subcontext instances may simply hold state information related to the message, in which case they may be seen as a type-safe variant of the ubiquitous properties map pattern. They may also be more functional or operational in nature, for example providing "views" onto the message and/or message context data.
BaseContext.ContextSetNoRemoveIteratorDecorator
Modifier and Type | Field and Description |
---|---|
private MessageType |
msg
The message represented.
|
Constructor and Description |
---|
MessageContext() |
Modifier and Type | Method and Description |
---|---|
MessageType |
getMessage()
Get the message represented by the message context.
|
void |
setMessage(MessageType message)
Set the message represented by the message context.
|
addSubcontext, addSubcontext, clearSubcontexts, containsSubcontext, createSubcontext, getParent, getSubcontext, getSubcontext, getSubcontext, getSubcontext, isAutoCreateSubcontexts, iterator, removeSubcontext, removeSubcontext, setAutoCreateSubcontexts, setParent
private MessageType msg
public MessageType getMessage()
public void setMessage(MessageType message)
message
- the messageCopyright © 1999–2015. All rights reserved.