public class AbstractMatchingRouter extends AbstractAnnotatedObject implements MatchingRouter
AbstractRouterCollection provides common method implementations of router collections for in
and outbound routers.| Modifier and Type | Field and Description |
|---|---|
protected MessageProcessor |
defaultRoute |
protected org.apache.commons.logging.Log |
logger
logger used by this class
|
protected List<MatchableMessageProcessor> |
matchableRoutes |
protected boolean |
matchAll |
PROPERTY_NAME| Constructor and Description |
|---|
AbstractMatchingRouter() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRoute(MatchableMessageProcessor matchable) |
void |
dispose() |
MessageProcessor |
getDefaultRoute() |
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) |
getAnnotation, getAnnotations, setAnnotationsprotected final transient org.apache.commons.logging.Log logger
protected List<MatchableMessageProcessor> matchableRoutes
protected boolean matchAll
protected MessageProcessor defaultRoute
public MuleEvent process(MuleEvent event) throws MuleException
MessageProcessorprocess in interface MessageProcessorevent - MuleEvent to be processedMuleExceptionprotected MuleEvent processDefaultRoute(MuleEvent event) throws MuleException
MuleExceptionpublic boolean isMatchAll()
public void setMatchAll(boolean matchAll)
public void addRoute(MatchableMessageProcessor matchable)
addRoute in interface MatchingRouterpublic void removeRoute(MatchableMessageProcessor matchable)
removeRoute in interface MatchingRouterpublic void setDefaultRoute(MessageProcessor defaultRoute)
public List<MatchableMessageProcessor> getRoutes()
public MessageProcessor getDefaultRoute()
public void initialise()
throws InitialisationException
InitialisationExceptionpublic void dispose()
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.