org.mule.routing
Class MessageFilter
java.lang.Object
org.mule.processor.AbstractInterceptingMessageProcessor
org.mule.processor.AbstractFilteringMessageProcessor
org.mule.routing.MessageFilter
- All Implemented Interfaces:
- InterceptingMessageProcessor, MessageProcessor, MessageSource
- Direct Known Subclasses:
- ForwardingConsumer
public class MessageFilter
- extends AbstractFilteringMessageProcessor
Implementation of 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.html
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
filter
protected Filter filter
MessageFilter
public MessageFilter()
- Deprecated. Use MessageFilter(Filter filter)
- For IoC only
MessageFilter
public MessageFilter(Filter filter)
MessageFilter
public MessageFilter(Filter filter,
boolean throwExceptionOnUnaccepted,
MessageProcessor messageProcessor)
- Parameters:
filter
- throwExceptionOnUnaccepted
- throw a FilterUnacceptedException when a message is rejected by the filter?messageProcessor
- used to handler unaccepted messages
accept
protected boolean accept(MuleEvent event)
- Specified by:
accept
in class AbstractFilteringMessageProcessor
filterUnacceptedException
protected MuleException filterUnacceptedException(MuleEvent event)
- Overrides:
filterUnacceptedException
in class AbstractFilteringMessageProcessor
getFilter
public Filter getFilter()
setFilter
public void setFilter(Filter filter)
toString
public java.lang.String toString()
- Overrides:
toString
in class AbstractInterceptingMessageProcessor
Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.