public interface NettyHttpBinding
Message api.| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.spi.HeaderFilterStrategy |
getHeaderFilterStrategy()
Gets the header filter strategy
|
void |
populateCamelHeaders(io.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(io.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(io.netty.handler.codec.http.FullHttpRequest request,
org.apache.camel.Exchange exchange,
NettyHttpConfiguration configuration)
Binds from Netty
HttpRequest to Camel Message. |
org.apache.camel.Message |
toCamelMessage(io.netty.handler.codec.http.FullHttpResponse response,
org.apache.camel.Exchange exchange,
NettyHttpConfiguration configuration)
Binds from Netty
HttpResponse to Camel Message. |
org.apache.camel.Message |
toCamelMessage(InboundStreamHttpRequest request,
org.apache.camel.Exchange exchange,
NettyHttpConfiguration configuration)
Binds from Netty
InboundStreamHttpRequest to Camel Message. |
org.apache.camel.Message |
toCamelMessage(InboundStreamHttpResponse response,
org.apache.camel.Exchange exchange,
NettyHttpConfiguration configuration)
Binds from Netty
InboundStreamHttpResponse to Camel Message. |
io.netty.handler.codec.http.HttpRequest |
toNettyRequest(org.apache.camel.Message message,
String uri,
NettyHttpConfiguration configuration)
Binds from Camel
Message to Netty HttpRequest. |
io.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(io.netty.handler.codec.http.FullHttpRequest request,
org.apache.camel.Exchange exchange,
NettyHttpConfiguration configuration)
throws Exception
HttpRequest to Camel Message.
Will use the populateCamelHeaders method 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 bindingorg.apache.camel.Message toCamelMessage(InboundStreamHttpRequest request, org.apache.camel.Exchange exchange, NettyHttpConfiguration configuration) throws Exception
InboundStreamHttpRequest to Camel Message.
request - the netty http requestexchange - the exchange that should contain the returned message.configuration - the endpoint configurationException - is thrown if error during bindingvoid populateCamelHeaders(io.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. Will use the
populateCamelHeaders method for populating the headers.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(io.netty.handler.codec.http.FullHttpResponse response,
org.apache.camel.Exchange exchange,
NettyHttpConfiguration configuration)
throws Exception
HttpResponse to Camel Message.
Will use the populateCamelHeaders method 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 bindingorg.apache.camel.Message toCamelMessage(InboundStreamHttpResponse response, org.apache.camel.Exchange exchange, NettyHttpConfiguration configuration) throws Exception
InboundStreamHttpResponse to Camel Message.
Will use the populateCamelHeaders method 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(io.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 bindingio.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 bindingio.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