Class ExpressionEvaluatingHeaderValueMessageProcessor<T>
java.lang.Object
org.springframework.integration.transformer.support.AbstractHeaderValueMessageProcessor<T>
org.springframework.integration.transformer.support.ExpressionEvaluatingHeaderValueMessageProcessor<T>
- Type Parameters:
- T- ther paylaod type.
- All Implemented Interfaces:
- Aware,- BeanFactoryAware,- MessageProcessor<T>,- HeaderValueMessageProcessor<T>
public class ExpressionEvaluatingHeaderValueMessageProcessor<T>
extends AbstractHeaderValueMessageProcessor<T>
implements BeanFactoryAware
- Since:
- 3.0
- Author:
- Mark Fisher, Artem Bilan
- 
Constructor SummaryConstructorsConstructorDescriptionExpressionEvaluatingHeaderValueMessageProcessor(String expressionString, Class<T> expectedType) Create a header value processor for the given expression string and the expected type of the expression evaluation result.ExpressionEvaluatingHeaderValueMessageProcessor(Expression expression, Class<T> expectedType) Create a header value processor for the given Expression and the expected type of the expression evaluation result.
- 
Method SummaryModifier and TypeMethodDescriptionprocessMessage(Message<?> message) Process the Message and return a value (or null).voidsetBeanFactory(BeanFactory beanFactory) Methods inherited from class org.springframework.integration.transformer.support.AbstractHeaderValueMessageProcessorisOverwrite, setOverwrite
- 
Constructor Details- 
ExpressionEvaluatingHeaderValueMessageProcessorpublic ExpressionEvaluatingHeaderValueMessageProcessor(Expression expression, Class<T> expectedType) Create a header value processor for the given Expression and the expected type of the expression evaluation result. The expectedType may be null if unknown.- Parameters:
- expression- the- Expressionto evaluate.
- expectedType- the type for return value of- expressionevaluation result.
 
- 
ExpressionEvaluatingHeaderValueMessageProcessorpublic ExpressionEvaluatingHeaderValueMessageProcessor(String expressionString, Class<T> expectedType) Create a header value processor for the given expression string and the expected type of the expression evaluation result. The expectedType may be null if unknown.- Parameters:
- expressionString- the- Stringexpression presentation to evaluate.
- expectedType- the type for return value of- expressionevaluation result.
 
 
- 
- 
Method Details- 
setBeanFactory- Specified by:
- setBeanFactoryin interface- BeanFactoryAware
 
- 
processMessageDescription copied from interface:MessageProcessorProcess the Message and return a value (or null).- Specified by:
- processMessagein interface- MessageProcessor<T>
- Parameters:
- message- The message to process.
- Returns:
- The result.
 
 
-