org.springframework.integration.xml.transformer
Class XPathHeaderEnricher

java.lang.Object
  extended by org.springframework.integration.transformer.HeaderEnricher
      extended by org.springframework.integration.xml.transformer.XPathHeaderEnricher
All Implemented Interfaces:
BeanNameAware, InitializingBean, 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.springframework.integration.transformer.HeaderEnricher
HeaderEnricher.HeaderValueMessageProcessor<T>
 
Constructor Summary
XPathHeaderEnricher(java.util.Map<java.lang.String,org.springframework.integration.xml.transformer.XPathHeaderEnricher.XPathExpressionEvaluatingHeaderValueMessageProcessor> expressionMap)
          Create an instance of XPathHeaderEnricher using a map with header names as keys and XPathExpressionValueHolders to evaluate the values.
 
Method Summary
 
Methods inherited from class org.springframework.integration.transformer.HeaderEnricher
afterPropertiesSet, setBeanName, setDefaultOverwrite, setMessageProcessor, setShouldSkipNulls, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPathHeaderEnricher

public XPathHeaderEnricher(java.util.Map<java.lang.String,org.springframework.integration.xml.transformer.XPathHeaderEnricher.XPathExpressionEvaluatingHeaderValueMessageProcessor> expressionMap)
Create an instance of XPathHeaderEnricher using a map with header names as keys and XPathExpressionValueHolders to evaluate the values.