org.mule.tck.testmodels.mule
Class TestResponseAggregator
java.lang.Object
org.mule.routing.AbstractRouter
org.mule.routing.response.AbstractResponseRouter
org.mule.routing.response.AbstractResponseAggregator
org.mule.routing.response.ResponseCorrelationAggregator
org.mule.tck.testmodels.mule.TestResponseAggregator
- All Implemented Interfaces:
- UMOResponseRouter, UMORouter
- public class TestResponseAggregator
- extends ResponseCorrelationAggregator
TestResponseAggregator
is a mock response Agrregator object used
for testing configuration
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestResponseAggregator
public TestResponseAggregator()
aggregateEvents
protected UMOMessage aggregateEvents(EventGroup events)
throws RoutingException
- This method is invoked if the shouldAggregate method is called and returns
true. Once this method returns an aggregated message the event group is
removed from the router
- Specified by:
aggregateEvents
in class AbstractResponseAggregator
- Parameters:
events
- the event group for this request
- Returns:
- an aggregated message
- Throws:
RoutingException
- if the aggregation fails. in
this scenario the whole event group is removed and passed to the
exception handler for this componenet- See Also:
AbstractEventAggregator.aggregateEvents(EventGroup)
Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.