org.apache.synapse.processors.rules
Class XPathProcessor

java.lang.Object
  extended byorg.apache.synapse.processors.AbstractProcessor
      extended byorg.apache.synapse.processors.ListProcessor
          extended byorg.apache.synapse.processors.rules.XPathProcessor
All Implemented Interfaces:
Processor

public class XPathProcessor
extends ListProcessor

This class executes an XPath test against the message envelope and then processes all subsequent rules/mediations if the test is true

TODO add the context into the XPath matching space


Constructor Summary
XPathProcessor()
           
 
Method Summary
 void addXPathNamespace(java.lang.String prefix, java.lang.String uri)
           
 java.lang.String getXPathExpr()
           
 boolean process(SynapseEnvironment se, SynapseMessage smc)
          This method is used to process a message.
 void setXPathExpr(java.lang.String expr)
           
 
Methods inherited from class org.apache.synapse.processors.ListProcessor
getList, setList
 
Methods inherited from class org.apache.synapse.processors.AbstractProcessor
getName, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPathProcessor

public XPathProcessor()
Method Detail

process

public boolean process(SynapseEnvironment se,
                       SynapseMessage smc)
Description copied from interface: Processor
This method is used to process a message. A response of true indicates continue processing. A response of false indicates to stop processing.

Specified by:
process in interface Processor
Overrides:
process in class ListProcessor

setXPathExpr

public void setXPathExpr(java.lang.String expr)

getXPathExpr

public java.lang.String getXPathExpr()

addXPathNamespace

public void addXPathNamespace(java.lang.String prefix,
                              java.lang.String uri)