public class MarshallingTransformer extends AbstractXmlTransformer
AbstractTransformer
that delegates
to an OXM Marshaller
.DOM_RESULT, STRING_RESULT
EXPRESSION_PARSER, 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.
|
getResultFactory, getResultFactoryName, getResultType, onInit, setResultFactory, setResultFactoryName, setResultType
transform
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toString
public MarshallingTransformer(Marshaller marshaller, ResultTransformer resultTransformer) throws ParserConfigurationException
ParserConfigurationException
public MarshallingTransformer(Marshaller marshaller) throws ParserConfigurationException
ParserConfigurationException
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.