org.mule.processor
Class AbstractFilteringMessageProcessor

java.lang.Object
  extended by org.mule.processor.AbstractInterceptingMessageProcessor
      extended by org.mule.processor.AbstractFilteringMessageProcessor
All Implemented Interfaces:
InterceptingMessageProcessor, MessageProcessor, MessageSource
Direct Known Subclasses:
InboundFeedSplitter, InboundFeedSplitter, MessageFilter, ProcessIfStartedMessageProcessor

public abstract class AbstractFilteringMessageProcessor
extends AbstractInterceptingMessageProcessor

Abstract InterceptingMessageProcessor that can be easily be extended and used for filtering message flow through a MessageProcessor chain. The default behaviour when the filter is not accepted is to return the request event.


Field Summary
 
Fields inherited from class org.mule.processor.AbstractInterceptingMessageProcessor
logger, next
 
Constructor Summary
AbstractFilteringMessageProcessor()
           
 
Method Summary
protected abstract  boolean accept(MuleEvent event)
           
protected  MuleEvent handleUnaccepted(MuleEvent event)
           
 MuleEvent process(MuleEvent event)
          Invokes the MessageProcessor.
 
Methods inherited from class org.mule.processor.AbstractInterceptingMessageProcessor
processNext, setListener, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractFilteringMessageProcessor

public AbstractFilteringMessageProcessor()
Method Detail

process

public MuleEvent process(MuleEvent event)
                  throws MuleException
Description copied from interface: MessageProcessor
Invokes the MessageProcessor.

Parameters:
event - MuleEvent to be processed
Returns:
optional response MuleEvent
Throws:
MuleException

accept

protected abstract boolean accept(MuleEvent event)

handleUnaccepted

protected MuleEvent handleUnaccepted(MuleEvent event)
                              throws MuleException
Throws:
MuleException


Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.