Class RegexTestXPathMessageSelector
java.lang.Object
org.springframework.integration.xml.selector.AbstractXPathMessageSelector
org.springframework.integration.xml.selector.RegexTestXPathMessageSelector
- All Implemented Interfaces:
- GenericSelector<Message<?>>,- MessageSelector
XPath 
MessageSelector that tests if a
 provided String value matches a given Regular Expression.- Since:
- 2.1
- Author:
- Mark Fisher, Gary Russell
- 
Constructor SummaryConstructorsConstructorDescriptionRegexTestXPathMessageSelector(String expression, String regex) Creates a non-namespaced selector which attempts to match the given regex.RegexTestXPathMessageSelector(String expression, String prefix, String namespace, String regex) Creates a selector which attempts to match the given regex and supports a single namespace.Creates a selector which attempts to match the given regex and supports multiple namespaces.RegexTestXPathMessageSelector(XPathExpression expression, String regex) Creates a selector which attempts to match the given regex against the evaluation result of the providedXPathExpression.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanEvaluate the payload and return true if the value returned by theXPathExpressionmatches theregex.Methods inherited from class org.springframework.integration.xml.selector.AbstractXPathMessageSelectorgetConverter, getXPathExpresion, setConverter
- 
Constructor Details- 
RegexTestXPathMessageSelectorpublic RegexTestXPathMessageSelector(String expression, Map<String, String> namespaces, String regex) Creates a selector which attempts to match the given regex and supports multiple namespaces.- Parameters:
- expression- XPath expression as a String
- namespaces- Map of namespaces where the keys are namespace prefixes
- regex- regular expression to match
 
- 
RegexTestXPathMessageSelectorpublic RegexTestXPathMessageSelector(String expression, String prefix, String namespace, String regex) Creates a selector which attempts to match the given regex and supports a single namespace.- Parameters:
- expression- XPath expression as a String
- prefix- namespace prefix
- namespace- namespace URI
- regex- regular expression to match
 
- 
RegexTestXPathMessageSelector
- 
RegexTestXPathMessageSelectorCreates a selector which attempts to match the given regex against the evaluation result of the providedXPathExpression.- Parameters:
- expression- XPath expression
- regex- regular expression to match
 
 
- 
- 
Method Details- 
acceptEvaluate the payload and return true if the value returned by theXPathExpressionmatches theregex.
 
-