org.mule.routing.inbound
Class InboundRouterCollection

java.lang.Object
  extended byorg.mule.routing.AbstractRouterCollection
      extended byorg.mule.routing.inbound.InboundRouterCollection
All Implemented Interfaces:
UMOInboundRouterCollection, UMORouterCollection

public class InboundRouterCollection
extends AbstractRouterCollection
implements UMOInboundRouterCollection

InboundRouterCollection 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.


Field Summary
 
Fields inherited from class org.mule.routing.AbstractRouterCollection
logger, matchAll, routers
 
Constructor Summary
InboundRouterCollection()
           
 
Method Summary
 void addEndpoint(UMOEndpoint endpoint)
           
 void addRouter(UMOInboundRouter router)
           
 void dispatch(UMOEvent event)
           
 UMOEndpoint getEndpoint(String name)
           
 List getEndpoints()
           
 boolean removeEndpoint(UMOEndpoint endpoint)
           
 UMOInboundRouter removeRouter(UMOInboundRouter router)
           
 UMOMessage route(UMOEvent event)
           
 UMOMessage send(UMOEvent event)
           
 void setEndpoints(List endpoints)
           
 
Methods inherited from class org.mule.routing.AbstractRouterCollection
addRouter, getCatchAllStrategy, getRouters, getStatistics, isMatchAll, removeRouter, setCatchAllStrategy, setMatchAll, setRouters, setStatistics
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.mule.umo.routing.UMORouterCollection
addRouter, getCatchAllStrategy, getRouters, getStatistics, isMatchAll, removeRouter, setCatchAllStrategy, setMatchAll, setRouters, setStatistics
 

Constructor Detail

InboundRouterCollection

public InboundRouterCollection()
Method Detail

route

public UMOMessage route(UMOEvent event)
                 throws MessagingException
Specified by:
route in interface UMOInboundRouterCollection
Throws:
MessagingException

dispatch

public void dispatch(UMOEvent event)
              throws UMOException
Throws:
UMOException

send

public UMOMessage send(UMOEvent event)
                throws UMOException
Throws:
UMOException

addRouter

public void addRouter(UMOInboundRouter router)
Specified by:
addRouter in interface UMOInboundRouterCollection

removeRouter

public UMOInboundRouter removeRouter(UMOInboundRouter router)
Specified by:
removeRouter in interface UMOInboundRouterCollection

addEndpoint

public void addEndpoint(UMOEndpoint endpoint)
Specified by:
addEndpoint in interface UMOInboundRouterCollection

removeEndpoint

public boolean removeEndpoint(UMOEndpoint endpoint)
Specified by:
removeEndpoint in interface UMOInboundRouterCollection

getEndpoints

public List getEndpoints()
Specified by:
getEndpoints in interface UMOInboundRouterCollection

setEndpoints

public void setEndpoints(List endpoints)
Specified by:
setEndpoints in interface UMOInboundRouterCollection

getEndpoint

public UMOEndpoint getEndpoint(String name)
Specified by:
getEndpoint in interface UMOInboundRouterCollection
Parameters:
name - the Endpoint identifier
Returns:
the Endpoint or null if the endpointUri is not registered
See Also:
UMOInboundRouterCollection


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.