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.EXPRESSION_PARSER, logger
Constructor and Description |
---|
AbstractPayloadTransformer() |
Modifier and Type | Method and Description |
---|---|
U |
doTransform(org.springframework.messaging.Message<?> message)
Subclasses must implement this method to provide the transformation
logic.
|
protected abstract U |
transformPayload(T payload) |
transform
afterPropertiesSet, extractTypeIfPossible, getApplicationContext, getApplicationContextId, getBeanFactory, getChannelResolver, getComponentName, getComponentType, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, onInit, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toString
public final U doTransform(org.springframework.messaging.Message<?> message) throws java.lang.Exception
AbstractTransformer
doTransform
in class AbstractTransformer
message
- The message.java.lang.Exception
- Any exception.