org.mule.umo.routing
Interface UMOResponseRouterCollection

All Superinterfaces:
UMORouterCollection
All Known Implementing Classes:
ResponseRouterCollection

public interface UMOResponseRouterCollection
extends UMORouterCollection

UMOResponseRouterCollection is a router that can be used to control how the response in a request/response message flow is created. Its main use case is to aggregate a set of asynchonous events into a single response.


Method Summary
 void addEndpoint(UMOEndpoint endpoint)
           
 UMOEndpoint getEndpoint(String name)
           
 List getEndpoints()
           
 UMOMessage getResponse(UMOMessage message)
           
 int getTimeout()
           
 boolean removeEndpoint(UMOEndpoint endpoint)
           
 UMOResponseRouter removeRouter(UMOResponseRouter router)
           
 void route(UMOEvent event)
           
 void setEndpoints(List endpoints)
           
 void setTimeout(int timeout)
           
 
Methods inherited from interface org.mule.umo.routing.UMORouterCollection
addRouter, getCatchAllStrategy, getRouters, getStatistics, isMatchAll, removeRouter, setCatchAllStrategy, setMatchAll, setRouters, setStatistics
 

Method Detail

route

public void route(UMOEvent event)
           throws RoutingException
Throws:
RoutingException

getResponse

public UMOMessage getResponse(UMOMessage message)
                       throws UMOException
Throws:
UMOException

removeRouter

public UMOResponseRouter removeRouter(UMOResponseRouter router)

addEndpoint

public void addEndpoint(UMOEndpoint endpoint)

removeEndpoint

public boolean removeEndpoint(UMOEndpoint endpoint)

getEndpoints

public List getEndpoints()

getEndpoint

public UMOEndpoint getEndpoint(String name)
Parameters:
name - the Endpoint identifier
Returns:
the Endpoint or null if the endpointUri is not registered
See Also:
UMOResponseRouterCollection

setEndpoints

public void setEndpoints(List endpoints)

getTimeout

public int getTimeout()

setTimeout

public void setTimeout(int timeout)


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