Method Detail

getPayload

Gets the message payload as an XML source, may be called
multiple times on the same LogicalMessage instance, always
returns a new Source that may be used to retrieve the entire
message payload.

If the returned Source is an instance of
DOMSource, then
modifications to the encapsulated DOM tree change the message
payload in-place, there is no need to susequently call
setPayload. Other types of Source provide only
read access to the message payload.

Returns:

The contained message payload; returns null if no
payload is present in this message.