Class SpringRabbitMQSendDynamicAware
- java.lang.Object
-
- org.apache.camel.support.service.BaseService
-
- org.apache.camel.support.service.ServiceSupport
-
- org.apache.camel.component.springrabbit.SpringRabbitMQSendDynamicAware
-
- All Implemented Interfaces:
AutoCloseable,org.apache.camel.CamelContextAware,org.apache.camel.Service,org.apache.camel.ShutdownableService,org.apache.camel.spi.SendDynamicAware,org.apache.camel.StatefulService,org.apache.camel.SuspendableService
@SendDynamic("spring-rabbitmq") public class SpringRabbitMQSendDynamicAware extends org.apache.camel.support.service.ServiceSupport implements org.apache.camel.spi.SendDynamicAwareRabbitMQ basedSendDynamicAwarewhich allows to optimise RabbitMQ components with the toD (dynamic to) DSL in Camel. This implementation optimises by allowing to provide dynamic parameters viaSpringRabbitMQConstants.EXCHANGE_OVERRIDE_NAMEheader instead of the endpoint uri. That allows to use a static endpoint and its producer to service dynamic requests.
-
-
Constructor Summary
Constructors Constructor Description SpringRabbitMQSendDynamicAware()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.camel.ProcessorcreatePostProcessor(org.apache.camel.Exchange exchange, org.apache.camel.spi.SendDynamicAware.DynamicAwareEntry entry)org.apache.camel.ProcessorcreatePreProcessor(org.apache.camel.Exchange exchange, org.apache.camel.spi.SendDynamicAware.DynamicAwareEntry entry)org.apache.camel.CamelContextgetCamelContext()StringgetScheme()booleanisLenientProperties()org.apache.camel.spi.SendDynamicAware.DynamicAwareEntryprepare(org.apache.camel.Exchange exchange, String uri, String originalUri)StringresolveStaticUri(org.apache.camel.Exchange exchange, org.apache.camel.spi.SendDynamicAware.DynamicAwareEntry entry)voidsetCamelContext(org.apache.camel.CamelContext camelContext)voidsetScheme(String scheme)-
Methods inherited from class org.apache.camel.support.service.BaseService
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, suspend
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
getScheme
public String getScheme()
- Specified by:
getSchemein interfaceorg.apache.camel.spi.SendDynamicAware
-
setScheme
public void setScheme(String scheme)
- Specified by:
setSchemein interfaceorg.apache.camel.spi.SendDynamicAware
-
getCamelContext
public org.apache.camel.CamelContext getCamelContext()
- Specified by:
getCamelContextin interfaceorg.apache.camel.CamelContextAware
-
setCamelContext
public void setCamelContext(org.apache.camel.CamelContext camelContext)
- Specified by:
setCamelContextin interfaceorg.apache.camel.CamelContextAware
-
isLenientProperties
public boolean isLenientProperties()
- Specified by:
isLenientPropertiesin interfaceorg.apache.camel.spi.SendDynamicAware
-
prepare
public org.apache.camel.spi.SendDynamicAware.DynamicAwareEntry prepare(org.apache.camel.Exchange exchange, String uri, String originalUri) throws Exception- Specified by:
preparein interfaceorg.apache.camel.spi.SendDynamicAware- Throws:
Exception
-
resolveStaticUri
public String resolveStaticUri(org.apache.camel.Exchange exchange, org.apache.camel.spi.SendDynamicAware.DynamicAwareEntry entry) throws Exception
- Specified by:
resolveStaticUriin interfaceorg.apache.camel.spi.SendDynamicAware- Throws:
Exception
-
createPreProcessor
public org.apache.camel.Processor createPreProcessor(org.apache.camel.Exchange exchange, org.apache.camel.spi.SendDynamicAware.DynamicAwareEntry entry) throws Exception- Specified by:
createPreProcessorin interfaceorg.apache.camel.spi.SendDynamicAware- Throws:
Exception
-
-