@SendDynamic(value="rabbitmq")
public class RabbitMQSendDynamicAware
extends org.apache.camel.support.service.ServiceSupport
implements org.apache.camel.spi.SendDynamicAware
SendDynamicAware which allows to optimise RabbitMQ components with the
toD (dynamic to) DSL in Camel. This implementation optimises by allowing to provide dynamic parameters via
RabbitMQConstants.EXCHANGE_OVERRIDE_NAME header instead of the endpoint uri. That allows to use a static
endpoint and its producer to service dynamic requests.| Constructor and Description |
|---|
RabbitMQSendDynamicAware() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Processor |
createPostProcessor(org.apache.camel.Exchange exchange,
org.apache.camel.spi.SendDynamicAware.DynamicAwareEntry entry) |
org.apache.camel.Processor |
createPreProcessor(org.apache.camel.Exchange exchange,
org.apache.camel.spi.SendDynamicAware.DynamicAwareEntry entry) |
org.apache.camel.CamelContext |
getCamelContext() |
String |
getScheme() |
boolean |
isLenientProperties() |
org.apache.camel.spi.SendDynamicAware.DynamicAwareEntry |
prepare(org.apache.camel.Exchange exchange,
String uri,
String originalUri) |
String |
resolveStaticUri(org.apache.camel.Exchange exchange,
org.apache.camel.spi.SendDynamicAware.DynamicAwareEntry entry) |
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
void |
setScheme(String scheme) |
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doStart, doStop, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic String getScheme()
getScheme in interface org.apache.camel.spi.SendDynamicAwarepublic void setScheme(String scheme)
setScheme in interface org.apache.camel.spi.SendDynamicAwarepublic org.apache.camel.CamelContext getCamelContext()
getCamelContext in interface org.apache.camel.CamelContextAwarepublic void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext in interface org.apache.camel.CamelContextAwarepublic boolean isLenientProperties()
isLenientProperties in interface org.apache.camel.spi.SendDynamicAwarepublic org.apache.camel.spi.SendDynamicAware.DynamicAwareEntry prepare(org.apache.camel.Exchange exchange,
String uri,
String originalUri)
throws Exception
prepare in interface org.apache.camel.spi.SendDynamicAwareExceptionpublic String resolveStaticUri(org.apache.camel.Exchange exchange, org.apache.camel.spi.SendDynamicAware.DynamicAwareEntry entry) throws Exception
resolveStaticUri in interface org.apache.camel.spi.SendDynamicAwareExceptionpublic org.apache.camel.Processor createPreProcessor(org.apache.camel.Exchange exchange,
org.apache.camel.spi.SendDynamicAware.DynamicAwareEntry entry)
throws Exception
createPreProcessor in interface org.apache.camel.spi.SendDynamicAwareExceptionApache Camel