org.mule.routing
Class AbstractMatchingRouter
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
AbstractMatchingRouter
public AbstractMatchingRouter()
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.