Class BooleanTestXPathMessageSelector
java.lang.Object
org.springframework.integration.xml.selector.AbstractXPathMessageSelector
org.springframework.integration.xml.selector.BooleanTestXPathMessageSelector
- All Implemented Interfaces:
- GenericSelector<Message<?>>,- MessageSelector
Boolean XPath testing 
MessageSelector.
 Requires an XPathExpression
 which can be evaluated using XPathExpression.evaluateAsBoolean(Node).
 Supports payloads of type Document or String.- Author:
- Jonas Partner, Gary Russell
- 
Constructor SummaryConstructorsConstructorDescriptionBooleanTestXPathMessageSelector(String expression) Create a boolean testing XPathMessageSelectorwith no namespace support.BooleanTestXPathMessageSelector(String expression, String prefix, String namespace) Create a boolean testing XPathMessageSelectorsupporting a single namespace.BooleanTestXPathMessageSelector(String expression, Map<String, String> namespaces) Create a boolean testing XPathMessageSelectorsupporting multiple namespaces.BooleanTestXPathMessageSelector(XPathExpression expression) Create a boolean testing XPathMessageSelectorusing the providedXPathExpression.
- 
Method SummaryMethods inherited from class org.springframework.integration.xml.selector.AbstractXPathMessageSelectorgetConverter, getXPathExpresion, setConverter
- 
Constructor Details- 
BooleanTestXPathMessageSelectorCreate a boolean testing XPathMessageSelectorsupporting multiple namespaces.- Parameters:
- expression- XPath expression as a String
- namespaces- Map of namespaces where the keys are namespace prefixes
 
- 
BooleanTestXPathMessageSelectorCreate a boolean testing XPathMessageSelectorsupporting a single namespace.- Parameters:
- expression- XPath expression as a String
- prefix- namespace prefix
- namespace- namespace URI
 
- 
BooleanTestXPathMessageSelectorCreate a boolean testing XPathMessageSelectorwith no namespace support.- Parameters:
- expression- XPath expression as a String
 
- 
BooleanTestXPathMessageSelectorCreate a boolean testing XPathMessageSelectorusing the providedXPathExpression.- Parameters:
- expression- XPath expression
 
 
- 
- 
Method Details- 
acceptReturn true if theXPathExpressionevaluates totrue
 
-