org.apache.camel.processor
Class DynamicRouter
java.lang.Object
org.apache.camel.support.ServiceSupport
org.apache.camel.processor.RoutingSlip
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:
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 |
DynamicRouter
public DynamicRouter(CamelContext camelContext)
DynamicRouter
public DynamicRouter(CamelContext camelContext,
Expression expression,
String uriDelimiter)
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