org.mule.routing.response
Class ResponseMessageRouter

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

public class ResponseMessageRouter
extends AbstractRouterCollection
implements UMOResponseMessageRouter

ResponseMessageRouter 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

Version:
$Revision: 1.5 $
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
ResponseMessageRouter()
           
 
Method Summary
 void addEndpoint(UMOEndpoint endpoint)
           
 void addRouter(UMOResponseRouter router)
           
 UMOEndpoint getEndpoint(java.lang.String name)
           
 java.util.List getEndpoints()
           
 UMOMessage getResponse(UMOMessage message)
           
 UMOTransformer getTransformer()
           
 boolean isStopProcessing()
           
 boolean removeEndpoint(UMOEndpoint endpoint)
           
 UMOResponseRouter removeRouter(UMOResponseRouter router)
           
 void route(UMOEvent event)
           
 void setEndpoints(java.util.List endpoints)
           
 void setStopProcessing(boolean stopProcessing)
           
 void setTransformer(UMOTransformer transformer)
           
 
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

ResponseMessageRouter

public ResponseMessageRouter()
Method Detail

route

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

getResponse

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

addRouter

public void addRouter(UMOResponseRouter router)
Specified by:
addRouter in interface UMOResponseMessageRouter

removeRouter

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

addEndpoint

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

removeEndpoint

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

getEndpoints

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

setEndpoints

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

getEndpoint

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

getTransformer

public UMOTransformer getTransformer()
Specified by:
getTransformer in interface UMOResponseMessageRouter

setTransformer

public void setTransformer(UMOTransformer transformer)
Specified by:
setTransformer in interface UMOResponseMessageRouter

isStopProcessing

public boolean isStopProcessing()
Specified by:
isStopProcessing in interface UMOResponseMessageRouter

setStopProcessing

public void setStopProcessing(boolean stopProcessing)
Specified by:
setStopProcessing in interface UMOResponseMessageRouter


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