@SendDynamic(value="paho-mqtt5")
public class PahoMqtt5SendDynamicAware
extends org.apache.camel.support.service.ServiceSupport
implements org.apache.camel.spi.SendDynamicAware
SendDynamicAware
which allows to optimise Paho components with the toD
(dynamic to) DSL in Camel. This implementation optimises by allowing to provide dynamic parameters via
PahoMqtt5Constants.CAMEL_PAHO_OVERRIDE_TOPIC
header instead of the endpoint uri. That allows to use a static
endpoint and its producer to service dynamic requests.Constructor and Description |
---|
PahoMqtt5SendDynamicAware() |
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, suspend
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public String getScheme()
getScheme
in interface org.apache.camel.spi.SendDynamicAware
public void setScheme(String scheme)
setScheme
in interface org.apache.camel.spi.SendDynamicAware
public org.apache.camel.CamelContext getCamelContext()
getCamelContext
in interface org.apache.camel.CamelContextAware
public void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext
in interface org.apache.camel.CamelContextAware
public boolean isLenientProperties()
isLenientProperties
in interface org.apache.camel.spi.SendDynamicAware
public 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.SendDynamicAware
Exception
public String resolveStaticUri(org.apache.camel.Exchange exchange, org.apache.camel.spi.SendDynamicAware.DynamicAwareEntry entry) throws Exception
resolveStaticUri
in interface org.apache.camel.spi.SendDynamicAware
Exception
public 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.SendDynamicAware
Exception
Apache Camel