Class RestNettyHttpBinding
java.lang.Object
org.apache.camel.component.netty.http.DefaultNettyHttpBinding
org.apache.camel.component.netty.http.RestNettyHttpBinding
- All Implemented Interfaces:
Cloneable
,NettyHttpBinding
A
NettyHttpBinding
that supports the Rest DSL.-
Constructor Summary
ConstructorDescriptionRestNettyHttpBinding
(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy) -
Method Summary
Modifier and TypeMethodDescriptioncopy()
void
populateCamelHeaders
(io.netty.handler.codec.http.HttpRequest request, Map<String, Object> headers, org.apache.camel.Exchange exchange, NettyHttpConfiguration configuration) Binds from NettyHttpRequest
to Camel headers as aMap
.Methods inherited from class org.apache.camel.component.netty.http.DefaultNettyHttpBinding
copyCamelHeaders, getHeaderFilterStrategy, populateCamelHeaders, setHeaderFilterStrategy, shouldUrlDecodeHeader, toCamelMessage, toCamelMessage, toCamelMessage, toCamelMessage, toNettyRequest, toNettyResponse
-
Constructor Details
-
RestNettyHttpBinding
public RestNettyHttpBinding() -
RestNettyHttpBinding
public RestNettyHttpBinding(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy)
-
-
Method Details
-
copy
- Overrides:
copy
in classDefaultNettyHttpBinding
-
populateCamelHeaders
public void populateCamelHeaders(io.netty.handler.codec.http.HttpRequest request, Map<String, Object> headers, org.apache.camel.Exchange exchange, NettyHttpConfiguration configuration) throws ExceptionDescription copied from interface:NettyHttpBinding
Binds from NettyHttpRequest
to Camel headers as aMap
. Will use the populateCamelHeaders method for populating the headers.- Specified by:
populateCamelHeaders
in interfaceNettyHttpBinding
- Overrides:
populateCamelHeaders
in classDefaultNettyHttpBinding
- Parameters:
request
- the netty http requestheaders
- the Camel headers that should be populatedexchange
- the exchange that should contain the returned message.configuration
- the endpoint configuration- Throws:
Exception
- is thrown if error during binding
-