public class HttpSendDynamicAware extends Object implements org.apache.camel.spi.SendDynamicAware
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) |
String |
getScheme() |
protected String[] |
parseUri(org.apache.camel.spi.SendDynamicAware.DynamicAwareEntry entry) |
org.apache.camel.spi.SendDynamicAware.DynamicAwareEntry |
prepare(org.apache.camel.Exchange exchange,
String uri) |
String |
resolveStaticUri(org.apache.camel.Exchange exchange,
org.apache.camel.spi.SendDynamicAware.DynamicAwareEntry entry) |
void |
setScheme(String scheme) |
public void setScheme(String scheme)
setScheme in interface org.apache.camel.spi.SendDynamicAwarepublic String getScheme()
getScheme in interface org.apache.camel.spi.SendDynamicAwarepublic org.apache.camel.spi.SendDynamicAware.DynamicAwareEntry prepare(org.apache.camel.Exchange exchange,
String uri)
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.SendDynamicAwareExceptionpublic org.apache.camel.Processor createPostProcessor(org.apache.camel.Exchange exchange,
org.apache.camel.spi.SendDynamicAware.DynamicAwareEntry entry)
throws Exception
createPostProcessor in interface org.apache.camel.spi.SendDynamicAwareExceptionprotected String[] parseUri(org.apache.camel.spi.SendDynamicAware.DynamicAwareEntry entry)
Apache Camel