|
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.StringValueTestXPathMessageSelector
public class StringValueTestXPathMessageSelector
XPath MessageSelector
that tests if a provided value supports
payloads of type Document
or String
.
Constructor Summary | |
---|---|
StringValueTestXPathMessageSelector(java.lang.String expression,
java.util.Map<java.lang.String,java.lang.String> namespaces,
java.lang.String valueToTestFor)
Create a selector which tests for the given value and supports multiple namespaces. |
|
StringValueTestXPathMessageSelector(java.lang.String expression,
java.lang.String valueToTestFor)
Creates a non-namespaced testing selector. |
|
StringValueTestXPathMessageSelector(java.lang.String expression,
java.lang.String prefix,
java.lang.String namespace,
java.lang.String valueToTestFor)
Creates a single namespace Xpath selector. |
|
StringValueTestXPathMessageSelector(org.springframework.xml.xpath.XPathExpression expression,
java.lang.String valueToTestFor)
Creates a selector with the provided XPathExpression . |
Method Summary | |
---|---|
boolean |
accept(Message<?> message)
Evaluate the payload and return true if the value returned by the XPathExpression is equal to the valueToTestFor . |
void |
setCaseSensitive(boolean caseSensitive)
Specify whether comparison of value returned by XPathExpression
to test value should be case sensitive. |
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 StringValueTestXPathMessageSelector(java.lang.String expression, java.util.Map<java.lang.String,java.lang.String> namespaces, java.lang.String valueToTestFor)
expression
- XPath expression as a Stringnamespaces
- Map of namespaces where the keys are namespace prefixesvalueToTestFor
- value to test forpublic StringValueTestXPathMessageSelector(java.lang.String expression, java.lang.String prefix, java.lang.String namespace, java.lang.String valueToTestFor)
expression
- XPath expression as a Stringprefix
- namespace prefixnamespace
- namespace URIvalueToTestFor
- value to test forpublic StringValueTestXPathMessageSelector(java.lang.String expression, java.lang.String valueToTestFor)
expression
- XPath expression as a StringvalueToTestFor
- value to test forpublic StringValueTestXPathMessageSelector(org.springframework.xml.xpath.XPathExpression expression, java.lang.String valueToTestFor)
XPathExpression
.
expression
- XPath expressionvalueToTestFor
- value to test forMethod Detail |
---|
public void setCaseSensitive(boolean caseSensitive)
XPathExpression
to test value should be case sensitive. Default is 'true'.
caseSensitive
- public boolean accept(Message<?> message)
XPathExpression
is equal to the valueToTestFor
.
|
Spring Integration | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |