Class StringValueTestXPathMessageSelector
java.lang.Object
org.springframework.integration.xml.selector.AbstractXPathMessageSelector
org.springframework.integration.xml.selector.StringValueTestXPathMessageSelector
- All Implemented Interfaces:
- GenericSelector<Message<?>>,- MessageSelector
- Author:
- Jonas Partner, Gary Russell
- 
Constructor SummaryConstructorsConstructorDescriptionStringValueTestXPathMessageSelector(String expression, String valueToTestFor) Creates a non-namespaced testing selector.StringValueTestXPathMessageSelector(String expression, String prefix, String namespace, String valueToTestFor) Creates a single namespace Xpath selector.StringValueTestXPathMessageSelector(String expression, Map<String, String> namespaces, String valueToTestFor) Create a selector which tests for the given value and supports multiple namespaces.StringValueTestXPathMessageSelector(XPathExpression expression, String valueToTestFor) Creates a selector with the providedXPathExpression.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanEvaluate the payload and return true if the value returned by theXPathExpressionis equal to thevalueToTestFor.voidsetCaseSensitive(boolean caseSensitive) Specify whether comparison of value returned byXPathExpressionto test value should be case sensitive.Methods inherited from class org.springframework.integration.xml.selector.AbstractXPathMessageSelectorgetConverter, getXPathExpresion, setConverter
- 
Constructor Details- 
StringValueTestXPathMessageSelectorpublic StringValueTestXPathMessageSelector(String expression, Map<String, String> namespaces, String valueToTestFor) Create a selector which tests for the given value and supports multiple namespaces.- Parameters:
- expression- XPath expression as a String
- namespaces- Map of namespaces where the keys are namespace prefixes
- valueToTestFor- value to test for
 
- 
StringValueTestXPathMessageSelectorpublic StringValueTestXPathMessageSelector(String expression, String prefix, String namespace, String valueToTestFor) Creates a single namespace Xpath selector.- Parameters:
- expression- XPath expression as a String
- prefix- namespace prefix
- namespace- namespace URI
- valueToTestFor- value to test for
 
- 
StringValueTestXPathMessageSelector
- 
StringValueTestXPathMessageSelectorCreates a selector with the providedXPathExpression.- Parameters:
- expression- XPath expression
- valueToTestFor- value to test for
 
 
- 
- 
Method Details- 
setCaseSensitivepublic void setCaseSensitive(boolean caseSensitive) Specify whether comparison of value returned byXPathExpressionto test value should be case sensitive. Default is 'true'.- Parameters:
- caseSensitive- true if the test should be case sensitive.
 
- 
acceptEvaluate the payload and return true if the value returned by theXPathExpressionis equal to thevalueToTestFor.
 
-