org.springframework.integration.xml.selector
Class AbstractXPathMessageSelector

java.lang.Object
  extended by org.springframework.integration.xml.selector.AbstractXPathMessageSelector
All Implemented Interfaces:
MessageSelector
Direct Known Subclasses:
BooleanTestXPathMessageSelector, StringValueTestXPathMessageSelector

public abstract class AbstractXPathMessageSelector
extends java.lang.Object
implements MessageSelector

Base class for XPath MessageSelector implementations.


Constructor Summary
AbstractXPathMessageSelector(java.lang.String xPathExpression)
           
AbstractXPathMessageSelector(java.lang.String xPathExpression, java.util.Map<java.lang.String,java.lang.String> namespaces)
           
AbstractXPathMessageSelector(java.lang.String xPathExpression, java.lang.String prefix, java.lang.String namespace)
           
AbstractXPathMessageSelector(org.springframework.xml.xpath.XPathExpression xPathExpression)
           
 
Method Summary
protected  XmlPayloadConverter getConverter()
           
protected  org.springframework.xml.xpath.XPathExpression getXPathExpresion()
           
 void setConverter(XmlPayloadConverter converter)
          Specify the converter used to convert payloads prior to XPath testing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.integration.core.MessageSelector
accept
 

Constructor Detail

AbstractXPathMessageSelector

public AbstractXPathMessageSelector(java.lang.String xPathExpression)
Parameters:
xPathExpression - XPath expression as a String

AbstractXPathMessageSelector

public AbstractXPathMessageSelector(java.lang.String xPathExpression,
                                    java.lang.String prefix,
                                    java.lang.String namespace)
Parameters:
xPathExpression - XPath expression as a String
prefix - namespace prefix
namespace - namespace URI

AbstractXPathMessageSelector

public AbstractXPathMessageSelector(java.lang.String xPathExpression,
                                    java.util.Map<java.lang.String,java.lang.String> namespaces)
Parameters:
xPathExpression - XPath expression as a String
namespaces - Map of namespaces with prefixes as the Map keys

AbstractXPathMessageSelector

public AbstractXPathMessageSelector(org.springframework.xml.xpath.XPathExpression xPathExpression)
Parameters:
xPathExpression - XPath expression
Method Detail

setConverter

public void setConverter(XmlPayloadConverter converter)
Specify the converter used to convert payloads prior to XPath testing.


getConverter

protected XmlPayloadConverter getConverter()

getXPathExpresion

protected org.springframework.xml.xpath.XPathExpression getXPathExpresion()