Class XPathHeaderEnricher

All Implemented Interfaces:
Aware, BeanFactoryAware, BeanNameAware, InitializingBean, ApplicationContextAware, ExpressionCapable, GenericTransformer<Message<?>,Message<?>>, IntegrationPattern, NamedComponent, Transformer

public class XPathHeaderEnricher extends HeaderEnricher
Transformer implementation that evaluates XPath expressions against the message payload and inserts the result of the evaluation into a message header. The header names will match the keys in the map of expressions.
Since:
2.0
Author:
Jonas Partner, Mark Fisher
  • Constructor Details

    • XPathHeaderEnricher

      public XPathHeaderEnricher(Map<String,XPathExpressionEvaluatingHeaderValueMessageProcessor> expressionMap)
      Create an instance of XPathHeaderEnricher using a map with header names as keys and XPathExpressionValueHolders to evaluate the values.
      Parameters:
      expressionMap - The expression map.