org.mule.routing.filters
Class WildcardFilter
java.lang.Object
org.mule.routing.filters.WildcardFilter
- All Implemented Interfaces:
- ObjectFilter, UMOFilter
- public class WildcardFilter
- extends Object
- implements UMOFilter, ObjectFilter
WildcardFilter is used to match wildcard string. It performs
matches with * i.e. jms.events.* would catch jms.events.customer
jms.events.receipts This filter accepts a comma separented list of patterns so
more than one filter pattenr can be matched for a given argument i.e.-
jms.events.*, jms.actions.* will match jms.events.system and jms.actions but not
jms.queue
- Version:
- $Revision: 3798 $
- Author:
- Ross Mason
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
patterns
protected String[] patterns
pattern
protected String pattern
WildcardFilter
public WildcardFilter()
WildcardFilter
public WildcardFilter(String pattern)
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)
isCaseSensitive
public boolean isCaseSensitive()
setCaseSensitive
public void setCaseSensitive(boolean caseSensitive)
Copyright © 2003-2006 MuleSource Inc.. All Rights Reserved.