|
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.BooleanTestXPathMessageSelector
public class BooleanTestXPathMessageSelector
Boolean XPath testing MessageSelector
. Requires an XPathExpression
which can be evaluated using XPathExpression.evaluateAsBoolean(Node)
.
Supports payloads of type Document
or String
.
Constructor Summary | |
---|---|
BooleanTestXPathMessageSelector(String expression)
Create a boolean testing XPath MessageSelector with no namespace
support. |
|
BooleanTestXPathMessageSelector(String expression,
Map<String,String> namespaces)
Create a boolean testing XPath MessageSelector supporting
mutliple namespaces. |
|
BooleanTestXPathMessageSelector(String expression,
String prefix,
String namespace)
Create a boolean testing XPath MessageSelector supporting a
single namespace. |
|
BooleanTestXPathMessageSelector(org.springframework.xml.xpath.XPathExpression expression)
Create a boolean testing XPath MessageSelector using the
provided XPathExpression . |
Method Summary | |
---|---|
boolean |
accept(Message<?> message)
Return true if the XPathExpression evaluates to true |
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 BooleanTestXPathMessageSelector(String expression, Map<String,String> namespaces)
MessageSelector
supporting
mutliple namespaces.
expression
- namespaces
- public BooleanTestXPathMessageSelector(String expression, String prefix, String namespace)
MessageSelector
supporting a
single namespace.
expression
- prefix
- namespace
- public BooleanTestXPathMessageSelector(String expression)
MessageSelector
with no namespace
support.
expression
- public BooleanTestXPathMessageSelector(org.springframework.xml.xpath.XPathExpression expression)
MessageSelector
using the
provided XPathExpression
.
expression
- Method Detail |
---|
public boolean accept(Message<?> message)
XPathExpression
evaluates to true
|
Spring Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |