org.mule.routing.response
Class ResponseRouterCollection

java.lang.Object
  extended byorg.mule.routing.AbstractRouterCollection
      extended byorg.mule.routing.response.ResponseRouterCollection
All Implemented Interfaces:
UMOResponseRouterCollection, UMORouterCollection

public class ResponseRouterCollection
extends AbstractRouterCollection
implements UMOResponseRouterCollection

ResponseRouterCollection is a router that can be used to control how the response in a request/response message flow is created. Main usecase is to aggregate a set of asynchonous events into a single response


Field Summary
 
Fields inherited from class org.mule.routing.AbstractRouterCollection
logger, matchAll, routers
 
Constructor Summary
ResponseRouterCollection()
           
 
Method Summary
 void addEndpoint(UMOEndpoint endpoint)
           
 void addRouter(UMORouter router)
           
 UMOEndpoint getEndpoint(String name)
           
 List getEndpoints()
           
 UMOMessage getResponse(UMOMessage message)
           
 int getTimeout()
           
 boolean isFailOnTimeout()
           
 boolean removeEndpoint(UMOEndpoint endpoint)
           
 UMOResponseRouter removeRouter(UMOResponseRouter router)
           
 void route(UMOEvent event)
           
 void setEndpoints(List endpoints)
           
 void setFailOnTimeout(boolean failOnTimeout)
           
 void setTimeout(int timeout)
           
 
Methods inherited from class org.mule.routing.AbstractRouterCollection
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
getCatchAllStrategy, getRouters, getStatistics, isMatchAll, removeRouter, setCatchAllStrategy, setMatchAll, setRouters, setStatistics
 

Constructor Detail

ResponseRouterCollection

public ResponseRouterCollection()
Method Detail

route

public void route(UMOEvent event)
           throws RoutingException
Specified by:
route in interface UMOResponseRouterCollection
Throws:
RoutingException

getResponse

public UMOMessage getResponse(UMOMessage message)
                       throws RoutingException
Specified by:
getResponse in interface UMOResponseRouterCollection
Throws:
RoutingException

addRouter

public void addRouter(UMORouter router)
Specified by:
addRouter in interface UMORouterCollection
Overrides:
addRouter in class AbstractRouterCollection

removeRouter

public UMOResponseRouter removeRouter(UMOResponseRouter router)
Specified by:
removeRouter in interface UMOResponseRouterCollection

addEndpoint

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

removeEndpoint

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

getEndpoints

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

setEndpoints

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

getEndpoint

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

getTimeout

public int getTimeout()
Specified by:
getTimeout in interface UMOResponseRouterCollection

setTimeout

public void setTimeout(int timeout)
Specified by:
setTimeout in interface UMOResponseRouterCollection

isFailOnTimeout

public boolean isFailOnTimeout()

setFailOnTimeout

public void setFailOnTimeout(boolean failOnTimeout)


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