public class MarshallingTransformer extends AbstractTransformer
AbstractTransformer
that delegates to an OXM Marshaller
.logger
Constructor and Description |
---|
MarshallingTransformer(org.springframework.oxm.Marshaller marshaller) |
MarshallingTransformer(org.springframework.oxm.Marshaller marshaller,
ResultTransformer resultTransformer) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
doTransform(Message<?> message)
Subclasses must implement this method to provide the transformation
logic.
|
void |
setExtractPayload(boolean extractPayload)
Specify whether the source Message's payload should be extracted prior
to marshalling.
|
void |
setResultFactory(ResultFactory resultFactory) |
transform
afterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getComponentType, getConversionService, getIntegrationProperties, getIntegrationProperty, getTaskScheduler, onInit, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toString
public MarshallingTransformer(org.springframework.oxm.Marshaller marshaller, ResultTransformer resultTransformer) throws javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.ParserConfigurationException
public MarshallingTransformer(org.springframework.oxm.Marshaller marshaller) throws javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.ParserConfigurationException
public void setResultFactory(ResultFactory resultFactory)
public void setExtractPayload(boolean extractPayload)
public java.lang.Object doTransform(Message<?> message)
AbstractTransformer
doTransform
in class AbstractTransformer