public abstract class AbstractPayloadTransformer<T,U> extends AbstractTransformer
Transformer
implementations that modify the payload
of a Message
. If the return value is itself a Message, it will be
used as the result. Otherwise, the return value will be used as the payload
of the result Message.logger
Constructor and Description |
---|
AbstractPayloadTransformer() |
Modifier and Type | Method and Description |
---|---|
U |
doTransform(Message<?> message)
Subclasses must implement this method to provide the transformation
logic.
|
protected abstract U |
transformPayload(T payload) |
transform
afterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getComponentType, getConversionService, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, onInit, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setMessageBuilderFactory, setTaskScheduler, toString
public final U doTransform(Message<?> message) throws Exception
AbstractTransformer
doTransform
in class AbstractTransformer
message
- The message.Exception
- Any exception.