org.mule.routing.outbound
Class OutboundRouterCollection
java.lang.Object
org.mule.routing.AbstractRouterCollection
org.mule.routing.outbound.OutboundRouterCollection
- All Implemented Interfaces:
- UMOOutboundRouterCollection, UMORouterCollection
- public class OutboundRouterCollection
- extends AbstractRouterCollection
- implements UMOOutboundRouterCollection
OutboundRouterCollection
is a container of routers. An
OutboundRouterCollection must have atleast one router. By default the first matching
router is used to route an event though it is possible to match on all routers
meaning that the message will get sent over all matching routers.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OutboundRouterCollection
public OutboundRouterCollection()
route
public UMOMessage route(UMOMessage message,
UMOSession session,
boolean synchronous)
throws MessagingException
- Description copied from interface:
UMOOutboundRouterCollection
- Prepares one or more events to be dispached by a Message Dispatcher.
- Specified by:
route
in interface UMOOutboundRouterCollection
- Parameters:
message
- The source Messagesession
- The current session
- Returns:
- a list containing 0 or events to be dispatched
- Throws:
MessagingException
getEndpointsForMessage
public UMOEndpoint[] getEndpointsForMessage(UMOMessage message)
throws MessagingException
- A helper method for finding out which endpoints a message would be routed to
without actually routing the the message
- Specified by:
getEndpointsForMessage
in interface UMOOutboundRouterCollection
- Parameters:
message
- the message to retrieve endpoints for
- Returns:
- an array of UMOEndpoint objects or an empty array
- Throws:
RoutingException
MessagingException
catchAll
protected UMOMessage catchAll(UMOMessage message,
UMOSession session,
boolean synchronous)
throws RoutingException
- Throws:
RoutingException
hasEndpoints
public boolean hasEndpoints()
- Description copied from interface:
UMOOutboundRouterCollection
- Determines if any endpoints have been set on this router.
- Specified by:
hasEndpoints
in interface UMOOutboundRouterCollection
- Returns:
Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.