Spring Integration

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:
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 messsage header. The header names will match the keys in the map of expressions.

Since:
2.0
Author:
Jonas Partner, Mark Fisher

Nested Class Summary
static class XPathHeaderEnricher.XPathExpressionEvaluatingHeaderValueMessageProcessor
           
 
Nested classes/interfaces inherited from class org.springframework.integration.transformer.HeaderEnricher
HeaderEnricher.HeaderValueMessageProcessor<T>
 
Constructor Summary
XPathHeaderEnricher(Map<String,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
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(Map<String,XPathHeaderEnricher.XPathExpressionEvaluatingHeaderValueMessageProcessor> expressionMap)
Create an instance of XPathHeaderEnricher using a map with header names as keys and XPathExpressionValueHolders to evaluate the values.


Spring Integration

Copyright © 2010. All Rights Reserved.