org.apache.synapse.processors.rules
Class RegexProcessor

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

public class RegexProcessor
extends ListProcessor

This checks the pattern against a property and if true processes the message with its child or children

TODO add to the set of properties you can search


Constructor Summary
RegexProcessor()
           
 
Method Summary
 java.lang.String getHeaderType()
           
 java.lang.String getPattern()
           
 java.lang.String getPropertyName()
           
 boolean process(SynapseEnvironment se, SynapseMessage smc)
          This method is used to process a message.
 void setHeaderType(java.lang.String header)
           
 void setPattern(java.lang.String p)
           
 void setPropertyName(java.lang.String p)
           
 
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

RegexProcessor

public RegexProcessor()
Method Detail

setHeaderType

public void setHeaderType(java.lang.String header)

getHeaderType

public java.lang.String getHeaderType()

setPattern

public void setPattern(java.lang.String p)

getPattern

public java.lang.String getPattern()

setPropertyName

public void setPropertyName(java.lang.String p)

getPropertyName

public java.lang.String getPropertyName()

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