Package org.apache.camel.http.base
Class HttpSendDynamicAware
- java.lang.Object
-
- org.apache.camel.http.base.HttpSendDynamicAware
-
- All Implemented Interfaces:
org.apache.camel.spi.SendDynamicAware
public class HttpSendDynamicAware extends Object implements org.apache.camel.spi.SendDynamicAware
HTTP basedSendDynamicAware
which allows to optimise HTTP components with the toD (dynamic to) DSL in Camel. This implementation optimises by allowing to provide dynamic parameters viaExchange.HTTP_PATH
andExchange.HTTP_QUERY
headers instead of the endpoint uri. That allows to use a static endpoint and its producer to service dynamic requests.
-
-
Constructor Summary
Constructors Constructor Description HttpSendDynamicAware()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
String[]
parseUri(org.apache.camel.spi.SendDynamicAware.DynamicAwareEntry entry)
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
setScheme(String scheme)
-
-
-
Method Detail
-
setScheme
public void setScheme(String scheme)
- Specified by:
setScheme
in interfaceorg.apache.camel.spi.SendDynamicAware
-
getScheme
public String getScheme()
- Specified by:
getScheme
in 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:
prepare
in 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:
resolveStaticUri
in 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:
createPreProcessor
in interfaceorg.apache.camel.spi.SendDynamicAware
- Throws:
Exception
-
createPostProcessor
public org.apache.camel.Processor createPostProcessor(org.apache.camel.Exchange exchange, org.apache.camel.spi.SendDynamicAware.DynamicAwareEntry entry) throws Exception
- Specified by:
createPostProcessor
in interfaceorg.apache.camel.spi.SendDynamicAware
- Throws:
Exception
-
parseUri
public String[] parseUri(org.apache.camel.spi.SendDynamicAware.DynamicAwareEntry entry)
-
-