Methods Summary |
---|
public javax.xml.transform.Source | 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.
|
public java.lang.Object | getPayload(javax.xml.bind.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 .
|
public void | setPayload(javax.xml.transform.Source payload)Sets the message payload
|
public void | setPayload(java.lang.Object payload, javax.xml.bind.JAXBContext context)Sets the message payload
|