public class MarshallingTransformer extends AbstractTransformer
AbstractTransformer
that delegates to an OXM Marshaller
.logger
Constructor and Description |
---|
MarshallingTransformer(Marshaller marshaller) |
MarshallingTransformer(Marshaller marshaller,
ResultTransformer resultTransformer) |
Modifier and Type | Method and Description |
---|---|
Object |
doTransform(Message<?> message)
Subclasses must implement this method to provide the transformation
logic.
|
String |
getComponentType()
Subclasses may implement this method to provide component type information.
|
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, getConversionService, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, onInit, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setMessageBuilderFactory, setTaskScheduler, toString
public MarshallingTransformer(Marshaller marshaller, ResultTransformer resultTransformer) throws ParserConfigurationException
ParserConfigurationException
public MarshallingTransformer(Marshaller marshaller) throws ParserConfigurationException
ParserConfigurationException
public void setResultFactory(ResultFactory resultFactory)
public void setExtractPayload(boolean extractPayload)
extractPayload
- true if the payload should be extracted.public String getComponentType()
IntegrationObjectSupport
getComponentType
in interface NamedComponent
getComponentType
in class IntegrationObjectSupport
public Object doTransform(Message<?> message)
AbstractTransformer
doTransform
in class AbstractTransformer
message
- The message.