public class RegExFilter extends Object implements Filter, ObjectFilter, MuleContextAware, Initialisable
RegExFilter is used to match a String argument against a regular expression.| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger |
PHASE_NAME| Constructor and Description |
|---|
RegExFilter() |
RegExFilter(String pattern) |
RegExFilter(String pattern,
int flags) |
RegExFilter(String pattern,
String value) |
RegExFilter(String pattern,
String value,
int flags) |
| 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) |
int |
getFlags() |
String |
getPattern() |
int |
hashCode() |
void |
initialise()
Method used to perform any initialisation work.
|
void |
setFlags(int flags) |
void |
setMuleContext(MuleContext context) |
void |
setPattern(String pattern) |
void |
setValue(String value) |
public RegExFilter()
public RegExFilter(String pattern)
public RegExFilter(String pattern, int flags)
public void initialise()
throws InitialisationException
InitialisableInitialisationException should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.initialise in interface InitialisableInitialisationException - if a fatal error occurs causing the Mule instance to shutdownRecoverableException - if an error occurs that can be recovered frompublic boolean accept(MuleMessage message)
Filterpublic boolean accept(Object object)
accept in interface ObjectFilterpublic String getPattern()
public void setPattern(String pattern)
public int getFlags()
public void setFlags(int flags)
public void setValue(String value)
public void setMuleContext(MuleContext context)
setMuleContext in interface MuleContextAwareCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.