org.mule.umo.routing
Interface UMOOutboundRouterCollection

All Superinterfaces:
UMORouterCollection
All Known Implementing Classes:
OutboundRouterCollection

public interface UMOOutboundRouterCollection
extends UMORouterCollection

UMOOutboundRouterCollection is responsible for holding all outbound routers for a service component.


Method Summary
 UMOEndpoint[] getEndpointsForMessage(UMOMessage message)
          A helper method for finding out which endpoints a message would be routed to without actually routing the the message.
 boolean hasEndpoints()
          Determines if any endpoints have been set on this router.
 UMOMessage route(UMOMessage message, UMOSession session, boolean synchronous)
          Prepares one or more events to be dispached by a Message Dispatcher.
 
Methods inherited from interface org.mule.umo.routing.UMORouterCollection
addRouter, getCatchAllStrategy, getRouters, getStatistics, isMatchAll, removeRouter, setCatchAllStrategy, setMatchAll, setRouters, setStatistics
 

Method Detail

route

public UMOMessage route(UMOMessage message,
                        UMOSession session,
                        boolean synchronous)
                 throws MessagingException
Prepares one or more events to be dispached by a Message Dispatcher.

Parameters:
message - The source Message
session - The current session
Returns:
a list containing 0 or events to be dispatched
Throws:
RoutingException - If any of the events cannot be created.
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.

Parameters:
message - the message to retrieve endpoints for
Returns:
an array of UMOEndpoint objects or an empty array
Throws:
RoutingException - if there is a filter exception
MessagingException

hasEndpoints

public boolean hasEndpoints()
Determines if any endpoints have been set on this router.

Returns:


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