public class HttpSendDynamicAware
extends org.apache.camel.support.component.SendDynamicAwareSupport
SendDynamicAware which allows to optimise HTTP components with the toD
(dynamic to) DSL in Camel. This implementation optimises by allowing to provide dynamic parameters via
Exchange.HTTP_PATH and Exchange.HTTP_QUERY headers instead of the endpoint uri. That allows to use a
static endpoint and its producer to service dynamic requests.| Constructor and Description |
|---|
HttpSendDynamicAware() |
| 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) |
boolean |
isLenientProperties() |
String[] |
parseUri(org.apache.camel.spi.SendDynamicAware.DynamicAwareEntry entry)
Parses the uri into an string array with 3 elements.
|
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) |
asEndpointUri, doInit, endpointLenientProperties, endpointProperties, getCamelContext, getScheme, resolveRawParameterValues, setCamelContext, setSchemebuild, doBuild, doFail, 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 boolean isLenientProperties()
public org.apache.camel.spi.SendDynamicAware.DynamicAwareEntry prepare(org.apache.camel.Exchange exchange,
String uri,
String originalUri)
throws Exception
Exceptionpublic String resolveStaticUri(org.apache.camel.Exchange exchange, org.apache.camel.spi.SendDynamicAware.DynamicAwareEntry entry) throws Exception
Exceptionpublic org.apache.camel.Processor createPreProcessor(org.apache.camel.Exchange exchange,
org.apache.camel.spi.SendDynamicAware.DynamicAwareEntry entry)
throws Exception
Exceptionpublic org.apache.camel.Processor createPostProcessor(org.apache.camel.Exchange exchange,
org.apache.camel.spi.SendDynamicAware.DynamicAwareEntry entry)
throws Exception
Exceptionpublic String[] parseUri(org.apache.camel.spi.SendDynamicAware.DynamicAwareEntry entry)
Apache Camel