public class ScriptFilter extends AbstractFilteringMessageProcessor implements Filter, Initialisable, Disposable
onUnacceptedFlowConstruct, throwOnUnaccepted, unacceptedMessageProcessor
logger, muleContext, next, notificationHandler
PHASE_NAME
PHASE_NAME
PROPERTY_NAME
Constructor and Description |
---|
ScriptFilter() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
accept(MuleEvent event) |
boolean |
accept(MuleMessage message)
Check a given message against this filter.
|
void |
dispose()
A lifecycle method where implementor should free up any resources.
|
String |
getName() |
Scriptable |
getScript() |
void |
initialise()
Method used to perform any initialisation work.
|
void |
setName(String name) |
void |
setScript(Scriptable script) |
filterUnacceptedException, getUnacceptedMessageProcessor, handleUnaccepted, isThrowOnUnaccepted, process, setThrowOnUnaccepted, setUnacceptedMessageProcessor
addMessageProcessorPathElements, getListener, getMuleContext, isEventValid, processNext, setListener, setMuleContext, toString
getAnnotation, getAnnotations, setAnnotations
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setListener
public void initialise() throws InitialisationException
Initialisable
InitialisationException
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 Initialisable
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdownRecoverableException
- if an error occurs that can be recovered frompublic void dispose()
Disposable
dispose
in interface Disposable
protected boolean accept(MuleEvent event)
accept
in class AbstractFilteringMessageProcessor
public boolean accept(MuleMessage message)
Filter
public Scriptable getScript()
public void setScript(Scriptable script)
public String getName()
public void setName(String name)
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.