org.mule.routing.inbound
Class InboundMessageRouter

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

public class InboundMessageRouter
extends AbstractRouterCollection
implements UMOInboundMessageRouter

InboundMessageRouter is a collection of routers that will be invoked when an event is received It is responsible for manageing a collection of routers and also executing the routing logic. Each router must match against the current event for the event to be routed.

Version:
$Revision: 1.1.1.1 $
Author:
Ross Mason

Field Summary
protected static Log logger
          logger used by this class
 
Fields inherited from class org.mule.routing.AbstractRouterCollection
matchAll, routers
 
Constructor Summary
InboundMessageRouter()
           
 
Method Summary
 void addEndpoint(UMOEndpoint endpoint)
           
 void addRouter(UMOInboundRouter router)
           
 void dispatch(UMOEvent event)
           
 UMOEndpoint getEndpoint(java.lang.String name)
           
 java.util.List getEndpoints()
           
 boolean removeEndpoint(UMOEndpoint endpoint)
           
 UMOInboundRouter removeRouter(UMOInboundRouter router)
           
 UMOMessage route(UMOEvent event)
           
 UMOMessage send(UMOEvent event)
           
 void setEndpoints(java.util.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
 

Field Detail

logger

protected static transient Log logger
logger used by this class

Constructor Detail

InboundMessageRouter

public InboundMessageRouter()
Method Detail

route

public UMOMessage route(UMOEvent event)
                 throws RoutingException
Specified by:
route in interface UMOInboundMessageRouter
Throws:
RoutingException

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 UMOInboundMessageRouter

removeRouter

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

addEndpoint

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

removeEndpoint

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

getEndpoints

public java.util.List getEndpoints()
Specified by:
getEndpoints in interface UMOInboundMessageRouter

setEndpoints

public void setEndpoints(java.util.List endpoints)
Specified by:
setEndpoints in interface UMOInboundMessageRouter

getEndpoint

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


Copyright © 2003-2005 SymphonySoft Limited. All Rights Reserved.