public MarshallingTransformer(Marshaller marshaller,
ResultTransformer resultTransformer)
throws javax.xml.parsers.ParserConfigurationException
Throws:
javax.xml.parsers.ParserConfigurationException
MarshallingTransformer
public MarshallingTransformer(Marshaller marshaller)
throws javax.xml.parsers.ParserConfigurationException
Throws:
javax.xml.parsers.ParserConfigurationException
Method Detail
setResultFactory
public void setResultFactory(ResultFactory resultFactory)
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
public java.lang.Object doTransform(Message<?> message)
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.