Class XPathExpressionEvaluatingHeaderValueMessageProcessor
java.lang.Object
org.springframework.integration.xml.transformer.support.XPathExpressionEvaluatingHeaderValueMessageProcessor
- All Implemented Interfaces:
Aware
,BeanFactoryAware
,MessageProcessor<Object>
,HeaderValueMessageProcessor<Object>
public class XPathExpressionEvaluatingHeaderValueMessageProcessor
extends Object
implements HeaderValueMessageProcessor<Object>, BeanFactoryAware
The xPath-specific
HeaderValueMessageProcessor
- Since:
- 2.0
- Author:
- Jonas Partner, Mark Fisher, Artem Bilan, Ngoc Nhan
-
Constructor Summary
ConstructorDescriptionXPathExpressionEvaluatingHeaderValueMessageProcessor
(String expression, XmlPayloadConverter converter) Construct an instance based on the provided xpath expression andXmlPayloadConverter
.XPathExpressionEvaluatingHeaderValueMessageProcessor
(XPathExpression expression, XmlPayloadConverter converter) Construct an instance based on the provided xpath expression andXmlPayloadConverter
. -
Method Summary
Modifier and TypeMethodDescriptionprocessMessage
(Message<?> message) Process the Message and return a value (or null).void
setBeanFactory
(BeanFactory beanFactory) void
setEvaluationType
(XPathEvaluationType evaluationType) void
setHeaderType
(Class<?> headerType) void
setOverwrite
(Boolean overwrite)
-
Constructor Details
-
XPathExpressionEvaluatingHeaderValueMessageProcessor
-
XPathExpressionEvaluatingHeaderValueMessageProcessor
public XPathExpressionEvaluatingHeaderValueMessageProcessor(String expression, XmlPayloadConverter converter) Construct an instance based on the provided xpath expression andXmlPayloadConverter
.- Parameters:
expression
- the xpath expression to evaluate.converter
- theXmlPayloadConverter
to use for document conversion.- Since:
- 4.3.19
-
XPathExpressionEvaluatingHeaderValueMessageProcessor
-
XPathExpressionEvaluatingHeaderValueMessageProcessor
public XPathExpressionEvaluatingHeaderValueMessageProcessor(XPathExpression expression, XmlPayloadConverter converter) Construct an instance based on the provided xpath expression andXmlPayloadConverter
.- Parameters:
expression
- the xpath expression to evaluate.converter
- theXmlPayloadConverter
to use for document conversion.- Since:
- 4.3.19
-
-
Method Details
-
setEvaluationType
-
setHeaderType
-
setOverwrite
-
isOverwrite
- Specified by:
isOverwrite
in interfaceHeaderValueMessageProcessor<Object>
-
setBeanFactory
- Specified by:
setBeanFactory
in interfaceBeanFactoryAware
- Throws:
BeansException
-
processMessage
Description copied from interface:MessageProcessor
Process the Message and return a value (or null).- Specified by:
processMessage
in interfaceMessageProcessor<Object>
- Parameters:
message
- The message to process.- Returns:
- The result.
-