|
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(String expression,
Map<String,String> namespaces,
String valueToTestFor)
Create a selector which tests for the given value and supports multiple namespaces. |
|
StringValueTestXPathMessageSelector(String expression,
String valueToTestFor)
Creates non-namespaced testing selector. |
|
StringValueTestXPathMessageSelector(String expression,
String prefix,
String namespace,
String valueToTestFor)
Creates a single namespace Xpath selector. |
|
StringValueTestXPathMessageSelector(org.springframework.xml.xpath.XPathExpression expression,
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(String expression, Map<String,String> namespaces, String valueToTestFor)
expression
- namespaces
- valueToTestFor
- public StringValueTestXPathMessageSelector(String expression, String prefix, String namespace, String valueToTestFor)
expression
- prefix
- namespace
- valueToTestFor
- public StringValueTestXPathMessageSelector(String expression, String valueToTestFor)
expression
- valueToTestFor
- public StringValueTestXPathMessageSelector(org.springframework.xml.xpath.XPathExpression expression, String valueToTestFor)
XPathExpression
.
expression
- valueToTestFor
- Method 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 |