setResultFactory

setExtractPayload

public void setExtractPayload(boolean extractPayload)

Specify whether the source Message's payload should be extracted prior
to marshalling. This value is set to "true" by default. To send the
Message itself as input to the Marshaller instead, set this to "false".

doTransform

Subclasses must implement this method to provide the transformation
logic. If the return value is itself a Message, it will be used as the
result. Otherwise, any non-null return value will be used as the payload
of the result Message.