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
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public MessageType getMessage()
public void setMessage(MessageType message)
message
- the messageCopyright © 2019. All rights reserved.