org.mule.routing.inbound
Class DefaultInboundRouterCollection
java.lang.Object
org.mule.routing.AbstractRouterCollection
org.mule.routing.inbound.DefaultInboundRouterCollection
- All Implemented Interfaces:
- MuleContextAware, Disposable, Initialisable, InboundRouterCollection, RouterCollection
public class DefaultInboundRouterCollection
- extends AbstractRouterCollection
- implements InboundRouterCollection
DefaultInboundRouterCollection
is a collection of routers that will be
invoked when an event is received. It is responsible for managing a collection of
routers and also executing the routing logic. Each router must match against the
current event for the event to be routed.
Methods inherited from class org.mule.routing.AbstractRouterCollection |
addRouter, dispose, getCatchAllStrategy, getRouters, getStatistics, initialise, isMatchAll, removeRouter, setCatchAllStrategy, setMatchAll, setMuleContext, setRouters, setStatistics |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultInboundRouterCollection
public DefaultInboundRouterCollection()
route
public MuleMessage route(MuleEvent event)
throws MessagingException
- Specified by:
route
in interface InboundRouterCollection
- Throws:
MessagingException
dispatch
public void dispatch(MuleEvent event)
throws MuleException
- Throws:
MuleException
send
public MuleMessage send(MuleEvent event)
throws MuleException
- Throws:
MuleException
addRouter
public void addRouter(InboundRouter router)
- Specified by:
addRouter
in interface InboundRouterCollection
removeRouter
public InboundRouter removeRouter(InboundRouter router)
- Specified by:
removeRouter
in interface InboundRouterCollection
addEndpoint
public void addEndpoint(InboundEndpoint endpoint)
- Specified by:
addEndpoint
in interface InboundRouterCollection
removeEndpoint
public boolean removeEndpoint(InboundEndpoint endpoint)
- Specified by:
removeEndpoint
in interface InboundRouterCollection
getEndpoints
public List getEndpoints()
- Specified by:
getEndpoints
in interface InboundRouterCollection
setEndpoints
public void setEndpoints(List endpoints)
- Specified by:
setEndpoints
in interface InboundRouterCollection
getEndpoint
public InboundEndpoint getEndpoint(String name)
- Specified by:
getEndpoint
in interface InboundRouterCollection
- Parameters:
name
- the Endpoint identifier
- Returns:
- the Endpoint or null if the endpointUri is not registered
- See Also:
InboundRouterCollection
Copyright © 2003-2009 MuleSource, Inc.. All Rights Reserved.