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 basedSendDynamicAwarewhich allows to optimise HTTP components with the toD (dynamic to) DSL in Camel. This implementation optimises by allowing to provide dynamic parameters viaExchange.HTTP_PATHandExchange.HTTP_QUERYheaders 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.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)StringgetScheme()String[]parseUri(org.apache.camel.spi.SendDynamicAware.DynamicAwareEntry entry)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)voidsetScheme(String scheme)
-
-
-
Method Detail
-
setScheme
public void setScheme(String scheme)
- Specified by:
setSchemein interfaceorg.apache.camel.spi.SendDynamicAware
-
getScheme
public String getScheme()
- Specified by:
getSchemein 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
-
createPostProcessor
public org.apache.camel.Processor createPostProcessor(org.apache.camel.Exchange exchange, org.apache.camel.spi.SendDynamicAware.DynamicAwareEntry entry) throws Exception- Specified by:
createPostProcessorin interfaceorg.apache.camel.spi.SendDynamicAware- Throws:
Exception
-
parseUri
public String[] parseUri(org.apache.camel.spi.SendDynamicAware.DynamicAwareEntry entry)
-
-