Spring Integration

org.springframework.integration.xml.selector
Class BooleanTestXPathMessageSelector

java.lang.Object
  extended by org.springframework.integration.xml.selector.AbstractXPathMessageSelector
      extended by org.springframework.integration.xml.selector.BooleanTestXPathMessageSelector
All Implemented Interfaces:
MessageSelector

public class BooleanTestXPathMessageSelector
extends AbstractXPathMessageSelector

Boolean XPath testing MessageSelector. Requires an XPathExpression which can be evaluated using XPathExpression.evaluateAsBoolean(Node). Supports payloads of type Document or String.

Author:
Jonas Partner

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

BooleanTestXPathMessageSelector

public BooleanTestXPathMessageSelector(String expression,
                                       Map<String,String> namespaces)
Create a boolean testing XPath MessageSelector supporting mutliple namespaces.

Parameters:
expression -
namespaces -

BooleanTestXPathMessageSelector

public BooleanTestXPathMessageSelector(String expression,
                                       String prefix,
                                       String namespace)
Create a boolean testing XPath MessageSelector supporting a single namespace.

Parameters:
expression -
prefix -
namespace -

BooleanTestXPathMessageSelector

public BooleanTestXPathMessageSelector(String expression)
Create a boolean testing XPath MessageSelector with no namespace support.

Parameters:
expression -

BooleanTestXPathMessageSelector

public BooleanTestXPathMessageSelector(org.springframework.xml.xpath.XPathExpression expression)
Create a boolean testing XPath MessageSelector using the provided XPathExpression.

Parameters:
expression -
Method Detail

accept

public boolean accept(Message<?> message)
Return true if the XPathExpression evaluates to true


Spring Integration

Copyright © 2010. All Rights Reserved.