LogicalMessage interface represents a
protocol agnostic XML message and contains methods that
provide access to the payload of the message.
| Modifier and Type | Method and Description |
|---|---|
| public Source | Returns: The contained message payload; returnsnull if no
payload is present in this message.Gets the message payload as an XML source, may be called
multiple times on the same LogicalMessage instance, always
returns a new |
| public Object | Returns: The contained message payload; returnsnull if no
payload is present in this messageThe JAXBContext that should be used to unmarshall
the message payload context)Gets the message payload as a JAXB object. |
| public void | |
| public void | setPayload(Object
message payload payload, JAXBContext The JAXBContext that should be used to marshall
the payload context)Sets the message payload |
| getPayload | back to summary |
|---|---|
| public Source getPayload() Gets the message payload as an XML source, may be called
multiple times on the same LogicalMessage instance, always
returns a new If the returned
| |
| getPayload | back to summary |
|---|---|
| public Object getPayload(JAXBContext context) Gets the message payload as a JAXB object. Note that there is no
connection between the returned object and the message payload,
changes to the payload require calling
| |
| setPayload | back to summary |
|---|---|
| public void setPayload(Source payload) Sets the message payload
| |
| setPayload | back to summary |
|---|---|
| public void setPayload(Object payload, JAXBContext context) Sets the message payload
| |