|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MessageInterface
A Message Interface is used to obtain information about an event that
was received by an EventBroker service
.
Such information includes:
Method Summary | |
---|---|
java.lang.Object |
clone()
Clone a copy of this message. |
java.lang.Object |
getBody()
Get body of message. |
org.w3c.dom.DocumentFragment |
getBodyAsDocumentFragment()
Get body of message as a DocumentFragment. |
java.lang.String |
getBodyAsString()
Get body of message as a string independent of its underlying format. |
java.lang.String |
getEventName()
Get the event name associated with this message. |
java.lang.String |
getMessageName()
Get the message name. |
java.util.Map |
getProperties()
Get properties associated with this event message. |
SecurityContext |
getSecurityContext()
Get security context. |
java.lang.String |
getSourceNodeName()
Get source process node name. |
void |
setBody(java.lang.Object body)
Set body of message. |
Method Detail |
---|
java.lang.Object clone()
java.lang.String getEventName()
java.lang.String getMessageName()
The initial, starting message that is created by the
EventBroker Service
when an
event is triggered is always named start.
void setBody(java.lang.Object body)
body
- message body.java.lang.Object getBody()
org.w3c.dom.DocumentFragment getBodyAsDocumentFragment() throws MessageBodyConversionException
The underlying message body must either already by a DocumentFragment or an object that can be serialized into DocumentFragment such as a String.
The returned document fragment is mutable. That is, updates to it are reflected in the body of the message.
MessageBodyConversionException
- if problems occur.java.lang.String getBodyAsString() throws MessageBodyConversionException
MessageBodyConversionException
- if problems occur.java.util.Map getProperties()
SecurityContext getSecurityContext()
java.lang.String getSourceNodeName()
It may be useful for process flow nodes to determine which predecessor node a message was propagated from.
blank
if this in the initial, starting message.
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |