Class XPathHeaderEnricher
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.transformer.HeaderEnricher
org.springframework.integration.xml.transformer.XPathHeaderEnricher
- All Implemented Interfaces:
Aware
,BeanFactoryAware
,BeanNameAware
,InitializingBean
,ApplicationContextAware
,ComponentSourceAware
,ExpressionCapable
,GenericTransformer<Message<?>,
,Message<?>> IntegrationPattern
,NamedComponent
,Transformer
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
-
Field Summary
Fields inherited from class org.springframework.integration.context.IntegrationObjectSupport
EXPRESSION_PARSER, logger
-
Constructor Summary
ConstructorDescriptionCreate 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
getComponentType, getIntegrationPatternType, onInit, setDefaultOverwrite, setMessageProcessor, setShouldSkipNulls, transform
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentDescription, getComponentName, getComponentSource, getConversionService, getExpression, getIntegrationProperties, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentDescription, setComponentName, setComponentSource, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toString
-
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.
-