org.apache.camel.processor
Class DynamicRouter

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

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
 
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, doStart, doStop, getTraceLabel, isIgnoreInvalidEndpoints, prepareExchangeForRoutingSlip, process, process, processExchange, resolveEndpoint, setDelimiter, setIgnoreInvalidEndpoints, toString
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, 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)
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


Apache CAMEL