Class XPathHeaderEnricher

All Implemented Interfaces:
Aware, BeanFactoryAware, BeanNameAware, InitializingBean, ApplicationContextAware, ExpressionCapable, IntegrationPattern, NamedComponent, GenericTransformer<Message<?>,Message<?>>, 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.
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.
      expressionMap - The expression map.