org.apache.camel.processor
Class DynamicRouter

java.lang.Object
  extended by org.apache.camel.support.ServiceSupport
      extended by org.apache.camel.processor.RoutingSlip
          extended by org.apache.camel.processor.DynamicRouter
All Implemented Interfaces:
AsyncProcessor, Processor, Service, ShutdownableService, StatefulService, SuspendableService, Traceable

public class DynamicRouter
extends RoutingSlip

Implements a Dynamic Router pattern where the destination(s) is computed at runtime.

This implementation builds on top of RoutingSlip which contains the most logic.

Version:

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.camel.processor.RoutingSlip
RoutingSlip.RoutingSlipIterator
 
Field Summary
 
Fields inherited from class org.apache.camel.processor.RoutingSlip
camelContext, expression, header, ignoreInvalidEndpoints, log, producerCache, uriDelimiter
 
Fields inherited from class org.apache.camel.support.ServiceSupport
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
 
Constructor Summary
DynamicRouter(CamelContext camelContext)
           
DynamicRouter(CamelContext camelContext, Expression expression, String uriDelimiter)
           
 
Method Summary
protected  RoutingSlip.RoutingSlipIterator createRoutingSlipIterator(Exchange exchange)
          Creates the route slip iterator to be used.
 
Methods inherited from class org.apache.camel.processor.RoutingSlip
doRoutingSlip, doShutdown, doStart, doStop, getTraceLabel, isIgnoreInvalidEndpoints, prepareExchangeForRoutingSlip, process, process, processExchange, resolveEndpoint, setDelimiter, setIgnoreInvalidEndpoints, toString
 
Methods inherited from class org.apache.camel.support.ServiceSupport
doResume, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DynamicRouter

public DynamicRouter(CamelContext camelContext)

DynamicRouter

public DynamicRouter(CamelContext camelContext,
                     Expression expression,
                     String uriDelimiter)
Method Detail

createRoutingSlipIterator

protected RoutingSlip.RoutingSlipIterator createRoutingSlipIterator(Exchange exchange)
                                                             throws Exception
Description copied from class: RoutingSlip
Creates the route slip iterator to be used.

Overrides:
createRoutingSlipIterator in class RoutingSlip
Parameters:
exchange - the exchange
Returns:
the iterator, should never be null
Throws:
Exception


Apache CAMEL