|
Spring Integration | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.integration.xml.selector.AbstractXPathMessageSelector org.springframework.integration.xml.selector.RegexTestXPathMessageSelector
public class RegexTestXPathMessageSelector
XPath MessageSelector
that tests if a provided String value
matches a given Regular Expression.
Constructor Summary | |
---|---|
RegexTestXPathMessageSelector(java.lang.String expression,
java.util.Map<java.lang.String,java.lang.String> namespaces,
java.lang.String regex)
Creates a selector which attempts to match the given regex and supports multiple namespaces. |
|
RegexTestXPathMessageSelector(java.lang.String expression,
java.lang.String regex)
Creates a non-namespaced selector which attempts to match the given regex. |
|
RegexTestXPathMessageSelector(java.lang.String expression,
java.lang.String prefix,
java.lang.String namespace,
java.lang.String regex)
Creates a selector which attempts to match the given regex and supports a single namespace. |
|
RegexTestXPathMessageSelector(org.springframework.xml.xpath.XPathExpression expression,
java.lang.String regex)
Creates a selector which attempts to match the given regex against the evaluation result of the provided XPathExpression . |
Method Summary | |
---|---|
boolean |
accept(Message<?> message)
Evaluate the payload and return true if the value returned by the XPathExpression matches the regex . |
Methods inherited from class org.springframework.integration.xml.selector.AbstractXPathMessageSelector |
---|
getConverter, getXPathExpresion, setConverter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RegexTestXPathMessageSelector(java.lang.String expression, java.util.Map<java.lang.String,java.lang.String> namespaces, java.lang.String regex)
expression
- XPath expression as a Stringnamespaces
- Map of namespaces where the keys are namespace prefixesregex
- regular expression to matchpublic RegexTestXPathMessageSelector(java.lang.String expression, java.lang.String prefix, java.lang.String namespace, java.lang.String regex)
expression
- XPath expression as a Stringprefix
- namespace prefixnamespace
- namespace URIregex
- regular expression to matchpublic RegexTestXPathMessageSelector(java.lang.String expression, java.lang.String regex)
expression
- XPath expression as a Stringregex
- regular expression to matchpublic RegexTestXPathMessageSelector(org.springframework.xml.xpath.XPathExpression expression, java.lang.String regex)
XPathExpression
.
expression
- XPath expressionregex
- regular expression to matchMethod Detail |
---|
public boolean accept(Message<?> message)
XPathExpression
matches the regex
.
|
Spring Integration | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |