Class AbstractXPathMessageSelector

java.lang.Object
org.springframework.integration.xml.selector.AbstractXPathMessageSelector
All Implemented Interfaces:
GenericSelector<Message<?>>, MessageSelector
Direct Known Subclasses:
BooleanTestXPathMessageSelector, RegexTestXPathMessageSelector, StringValueTestXPathMessageSelector

public abstract class AbstractXPathMessageSelector extends Object implements MessageSelector
Base class for XPath MessageSelector implementations.
Author:
Jonas Partner
  • Constructor Details

    • AbstractXPathMessageSelector

      public AbstractXPathMessageSelector(String xPathExpression)
      Parameters:
      xPathExpression - XPath expression as a String
    • AbstractXPathMessageSelector

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

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

      public AbstractXPathMessageSelector(XPathExpression xPathExpression)
      Parameters:
      xPathExpression - XPath expression
  • Method Details

    • setConverter

      public void setConverter(XmlPayloadConverter converter)
      Specify the converter used to convert payloads prior to XPath testing.
      Parameters:
      converter - The payload converter.
    • getConverter

      protected XmlPayloadConverter getConverter()
    • getXPathExpresion

      protected XPathExpression getXPathExpresion()