org.mule.routing
Class AbstractMatchingRouter

java.lang.Object
  extended by org.mule.routing.AbstractMatchingRouter
All Implemented Interfaces:
MessageProcessor, MatchingRouter

public class AbstractMatchingRouter
extends java.lang.Object
implements MatchingRouter

AbstractRouterCollection provides common method implementations of router collections for in and outbound routers.


Field Summary
protected  MessageProcessor defaultRoute
           
protected  Log logger
          logger used by this class
protected  java.util.List<MatchableMessageProcessor> matchableRoutes
           
protected  boolean matchAll
           
 
Constructor Summary
AbstractMatchingRouter()
           
 
Method Summary
 void addRoute(MatchableMessageProcessor matchable)
           
 void dispose()
           
 MessageProcessor getDefaultRoute()
           
 java.util.List<MatchableMessageProcessor> getRoutes()
           
 void initialise()
           
 boolean isMatchAll()
           
 MuleEvent process(MuleEvent event)
          Invokes the MessageProcessor.
protected  MuleEvent processDefaultRoute(MuleEvent event)
           
 void removeRoute(MatchableMessageProcessor matchable)
           
 void setDefaultRoute(MessageProcessor defaultRoute)
           
 void setMatchAll(boolean matchAll)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final transient Log logger
logger used by this class


matchableRoutes

protected java.util.List<MatchableMessageProcessor> matchableRoutes

matchAll

protected boolean matchAll

defaultRoute

protected MessageProcessor defaultRoute
Constructor Detail

AbstractMatchingRouter

public AbstractMatchingRouter()
Method Detail

process

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

Specified by:
process in interface MessageProcessor
Parameters:
event - MuleEvent to be processed
Returns:
optional response MuleEvent
Throws:
MuleException

processDefaultRoute

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

isMatchAll

public boolean isMatchAll()

setMatchAll

public void setMatchAll(boolean matchAll)

addRoute

public void addRoute(MatchableMessageProcessor matchable)
Specified by:
addRoute in interface MatchingRouter

removeRoute

public void removeRoute(MatchableMessageProcessor matchable)
Specified by:
removeRoute in interface MatchingRouter

setDefaultRoute

public void setDefaultRoute(MessageProcessor defaultRoute)

getRoutes

public java.util.List<MatchableMessageProcessor> getRoutes()

getDefaultRoute

public MessageProcessor getDefaultRoute()

initialise

public void initialise()
                throws InitialisationException
Throws:
InitialisationException

dispose

public void dispose()


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