org.mule.routing.filters
Class RegExFilter

java.lang.Object
  extended byorg.mule.routing.filters.RegExFilter
All Implemented Interfaces:
ObjectFilter, UMOFilter

public class RegExFilter
extends Object
implements UMOFilter, ObjectFilter

RegExFilter is used to match a String argument against a regular expression.


Constructor Summary
RegExFilter()
           
RegExFilter(String pattern)
           
 
Method Summary
 boolean accept(Object object)
           
 boolean accept(UMOMessage message)
          Check a given message against this filter.
 String getPattern()
           
 void setPattern(String pattern)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegExFilter

public RegExFilter()

RegExFilter

public RegExFilter(String pattern)
Method Detail

accept

public boolean accept(UMOMessage message)
Description copied from interface: UMOFilter
Check a given message against this filter.

Specified by:
accept in interface UMOFilter
Parameters:
message - a non null message to filter.
Returns:
true if the message matches the filter

accept

public boolean accept(Object object)
Specified by:
accept in interface ObjectFilter

getPattern

public String getPattern()

setPattern

public void setPattern(String pattern)


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.