Class ExpressionEvaluatingHeaderValueMessageProcessor<T>

java.lang.Object
org.springframework.integration.transformer.support.AbstractHeaderValueMessageProcessor<T>
org.springframework.integration.transformer.support.ExpressionEvaluatingHeaderValueMessageProcessor<T>
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 Details

    • ExpressionEvaluatingHeaderValueMessageProcessor

      public 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 Expression to evaluate.
      expectedType - the type for return value of expression evaluation result.
    • ExpressionEvaluatingHeaderValueMessageProcessor

      public 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 String expression presentation to evaluate.
      expectedType - the type for return value of expression evaluation result.
  • Method Details