public interface NettyHttpBinding
Message api.| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.spi.HeaderFilterStrategy |
getHeaderFilterStrategy()
Gets the header filter strategy
|
void |
populateCamelHeaders(org.jboss.netty.handler.codec.http.HttpRequest request,
Map<String,Object> headers,
org.apache.camel.Exchange exchange,
NettyHttpConfiguration configuration)
Binds from Netty
HttpRequest to Camel headers as a Map. |
void |
populateCamelHeaders(org.jboss.netty.handler.codec.http.HttpResponse response,
Map<String,Object> headers,
org.apache.camel.Exchange exchange,
NettyHttpConfiguration configuration)
Binds from Netty
HttpResponse to Camel headers as a Map. |
void |
setHeaderFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy)
Sets the header filter strategy to use.
|
org.apache.camel.Message |
toCamelMessage(org.jboss.netty.handler.codec.http.HttpRequest request,
org.apache.camel.Exchange exchange,
NettyHttpConfiguration configuration)
Binds from Netty
HttpRequest to Camel Message. |
org.apache.camel.Message |
toCamelMessage(org.jboss.netty.handler.codec.http.HttpResponse response,
org.apache.camel.Exchange exchange,
NettyHttpConfiguration configuration)
Binds from Netty
HttpResponse to Camel Message. |
org.jboss.netty.handler.codec.http.HttpRequest |
toNettyRequest(org.apache.camel.Message message,
String uri,
NettyHttpConfiguration configuration)
Binds from Camel
Message to Netty HttpRequest. |
org.jboss.netty.handler.codec.http.HttpResponse |
toNettyResponse(org.apache.camel.Message message,
NettyHttpConfiguration configuration)
Binds from Camel
Message to Netty HttpResponse. |
org.apache.camel.Message toCamelMessage(org.jboss.netty.handler.codec.http.HttpRequest request,
org.apache.camel.Exchange exchange,
NettyHttpConfiguration configuration)
throws Exception
HttpRequest to Camel Message.
Will use populateCamelHeaders(org.jboss.netty.handler.codec.http.HttpRequest, java.util.Map, org.apache.camel.Exchange, NettyHttpConfiguration)
for populating the headers.request - the netty http requestexchange - the exchange that should contain the returned message.configuration - the endpoint configurationException - is thrown if error during bindingvoid populateCamelHeaders(org.jboss.netty.handler.codec.http.HttpRequest request,
Map<String,Object> headers,
org.apache.camel.Exchange exchange,
NettyHttpConfiguration configuration)
throws Exception
HttpRequest to Camel headers as a Map.request - the netty http requestheaders - the Camel headers that should be populatedexchange - the exchange that should contain the returned message.configuration - the endpoint configurationException - is thrown if error during bindingorg.apache.camel.Message toCamelMessage(org.jboss.netty.handler.codec.http.HttpResponse response,
org.apache.camel.Exchange exchange,
NettyHttpConfiguration configuration)
throws Exception
HttpResponse to Camel Message.
Will use populateCamelHeaders(org.jboss.netty.handler.codec.http.HttpResponse, java.util.Map, org.apache.camel.Exchange, NettyHttpConfiguration)
for populating the headers.response - the netty http responseexchange - the exchange that should contain the returned message.configuration - the endpoint configurationException - is thrown if error during bindingvoid populateCamelHeaders(org.jboss.netty.handler.codec.http.HttpResponse response,
Map<String,Object> headers,
org.apache.camel.Exchange exchange,
NettyHttpConfiguration configuration)
throws Exception
HttpResponse to Camel headers as a Map.response - the netty http responseheaders - the Camel headers that should be populatedexchange - the exchange that should contain the returned message.configuration - the endpoint configurationException - is thrown if error during bindingorg.jboss.netty.handler.codec.http.HttpResponse toNettyResponse(org.apache.camel.Message message,
NettyHttpConfiguration configuration)
throws Exception
Message to Netty HttpResponse.message - the Camel messageconfiguration - the endpoint configurationException - is thrown if error during bindingorg.jboss.netty.handler.codec.http.HttpRequest toNettyRequest(org.apache.camel.Message message,
String uri,
NettyHttpConfiguration configuration)
throws Exception
Message to Netty HttpRequest.message - the Camel messageuri - the uri which is the intended uri to call, though the message may override the uriconfiguration - the endpoint configurationException - is thrown if error during bindingorg.apache.camel.spi.HeaderFilterStrategy getHeaderFilterStrategy()
void setHeaderFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy)
headerFilterStrategy - the custom strategyApache Camel