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) |
transformafterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getComponentType, getConversionService, getIntegrationProperties, getIntegrationProperty, getTaskScheduler, onInit, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toStringpublic final U doTransform(Message<?> message) throws java.lang.Exception
AbstractTransformerdoTransform in class AbstractTransformerjava.lang.Exception