org.mule.routing.outbound
Class AbstractRecipientList

java.lang.Object
  extended byorg.mule.routing.outbound.AbstractOutboundRouter
      extended byorg.mule.routing.outbound.FilteringOutboundRouter
          extended byorg.mule.routing.outbound.AbstractRecipientList
All Implemented Interfaces:
UMOOutboundRouter, UMORouter
Direct Known Subclasses:
StaticRecipientList

public abstract class AbstractRecipientList
extends FilteringOutboundRouter

AbstractRecipientList is used to dispatch a single event to multiple recipients over the same transport. The recipient endpoints can be configured statically or can be obtained from the message payload.

Version:
$Revision: 1.6 $
Author:
Ross Mason

Field Summary
protected static Log logger
          logger used by this class
 
Fields inherited from class org.mule.routing.outbound.AbstractOutboundRouter
ENABLE_CORREATION_ALWAYS, ENABLE_CORREATION_IF_NOT_SET, ENABLE_CORREATION_NEVER, enableCorrelation, endpoints, propertyExtractor, replyTo, routerStatistics, transactionConfig
 
Constructor Summary
AbstractRecipientList()
           
 
Method Summary
protected  UMOEndpoint getRecipientEndpoint(UMOMessage message, java.lang.String recipient)
           
protected abstract  CopyOnWriteArrayList getRecipients(UMOMessage message)
           
 UMOMessage route(UMOMessage message, UMOSession session, boolean synchronous)
           
 
Methods inherited from class org.mule.routing.outbound.FilteringOutboundRouter
getFilter, getTransformer, isMatch, setFilter, setTransformer
 
Methods inherited from class org.mule.routing.outbound.AbstractOutboundRouter
addEndpoint, dispatch, getEnableCorrelation, getEndpoints, getPropertyExtractor, getReplyTo, getRouterStatistics, getTransactionConfig, removeEndpoint, send, setEnableCorrelation, setEnableCorrelationAsString, setEndpoints, setMessageProperties, setPropertyExtractor, setReplyTo, setRouterStatistics, setTransactionConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static transient Log logger
logger used by this class

Constructor Detail

AbstractRecipientList

public AbstractRecipientList()
Method Detail

route

public UMOMessage route(UMOMessage message,
                        UMOSession session,
                        boolean synchronous)
                 throws RoutingException
Specified by:
route in interface UMOOutboundRouter
Overrides:
route in class FilteringOutboundRouter
Throws:
RoutingException

getRecipientEndpoint

protected UMOEndpoint getRecipientEndpoint(UMOMessage message,
                                           java.lang.String recipient)
                                    throws RoutingException
Throws:
RoutingException

getRecipients

protected abstract CopyOnWriteArrayList getRecipients(UMOMessage message)


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