public class WildcardFilter extends Object implements Filter, ObjectFilter
WildcardFilter
is used to match Strings against wildcards. It
performs matches with "*", i.e. "jms.events.*" would catch "jms.events.customer"
and "jms.events.receipts". This filter accepts a comma-separated list of patterns,
so more than one filter pattern can be matched for a given argument:
"jms.events.*, jms.actions.*" will match "jms.events.system" and "jms.actions" but
not "jms.queue".Modifier and Type | Field and Description |
---|---|
protected Log |
logger |
protected String |
pattern |
protected String[] |
patterns |
Constructor and Description |
---|
WildcardFilter() |
WildcardFilter(String pattern) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(MuleMessage message)
Check a given message against this filter.
|
boolean |
accept(Object object) |
boolean |
equals(Object obj) |
String |
getPattern() |
int |
hashCode() |
boolean |
isCaseSensitive() |
void |
setCaseSensitive(boolean caseSensitive) |
void |
setPattern(String pattern) |
protected final Log logger
protected volatile String pattern
protected volatile String[] patterns
public WildcardFilter()
public WildcardFilter(String pattern)
public boolean accept(MuleMessage message)
Filter
public boolean accept(Object object)
accept
in interface ObjectFilter
public String getPattern()
public void setPattern(String pattern)
public boolean isCaseSensitive()
public void setCaseSensitive(boolean caseSensitive)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.