public class MessageFilter extends AbstractFilteringMessageProcessor implements FlowConstructAware, org.mule.runtime.api.lifecycle.Lifecycle
InterceptingMessageProcessor that filters message flow using a Filter. Is the filter accepts
the message then message flow continues to the next message processor. If the filter does not accept the message processor and
a message processor is configured for handling unaccepted message then this will be invoked, otherwise null will
be returned.
EIP Reference: http://www.eaipatterns .com/Filter.htmlReactiveProcessor.ProcessingType| Modifier and Type | Field and Description |
|---|---|
protected Filter |
filter |
onUnacceptedFlowConstruct, throwOnUnaccepted, unacceptedMessageProcessorflowConstruct, logger, muleContext, next| Constructor and Description |
|---|
MessageFilter()
Deprecated.
Use MessageFilter(Filter filter)
|
MessageFilter(Filter filter) |
MessageFilter(Filter filter,
boolean throwExceptionOnUnaccepted,
Processor messageProcessor) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
accept(Event event,
Event.Builder builder) |
void |
dispose() |
protected MessagingException |
filterFailureException(Event event,
Exception ex) |
protected org.mule.runtime.api.exception.MuleException |
filterUnacceptedException(Event event) |
Filter |
getFilter() |
void |
initialise() |
void |
setFilter(Filter filter) |
void |
setFlowConstruct(FlowConstruct flowConstruct) |
void |
setMuleContext(MuleContext context) |
void |
start() |
void |
stop() |
String |
toString() |
apply, getUnacceptedMessageProcessor, handleUnaccepted, isThrowOnUnaccepted, process, setThrowOnUnaccepted, setUnacceptedMessageProcessorapplyNext, getListener, getMuleContext, isEventValid, processNext, setListenergetAnnotation, getAnnotations, getLocation, setAnnotationsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsetListenergetProcessingTypeprotected Filter filter
@Deprecated public MessageFilter()
public MessageFilter(Filter filter)
protected boolean accept(Event event, Event.Builder builder)
accept in class AbstractFilteringMessageProcessorprotected MessagingException filterFailureException(Event event, Exception ex)
filterFailureException in class AbstractFilteringMessageProcessorprotected org.mule.runtime.api.exception.MuleException filterUnacceptedException(Event event)
filterUnacceptedException in class AbstractFilteringMessageProcessorpublic Filter getFilter()
public void setFilter(Filter filter)
public String toString()
toString in class AbstractInterceptingMessageProcessorBasepublic void setMuleContext(MuleContext context)
setMuleContext in interface MuleContextAwaresetMuleContext in class AbstractInterceptingMessageProcessorBasecontext - the Mule node.public void setFlowConstruct(FlowConstruct flowConstruct)
setFlowConstruct in interface FlowConstructAwaresetFlowConstruct in class AbstractInterceptingMessageProcessorBasepublic void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableorg.mule.runtime.api.lifecycle.InitialisationExceptionpublic void start()
throws org.mule.runtime.api.exception.MuleException
start in interface org.mule.runtime.api.lifecycle.Startableorg.mule.runtime.api.exception.MuleExceptionpublic void stop()
throws org.mule.runtime.api.exception.MuleException
stop in interface org.mule.runtime.api.lifecycle.Stoppableorg.mule.runtime.api.exception.MuleExceptionpublic void dispose()
dispose in interface org.mule.runtime.api.lifecycle.DisposableCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.