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
ConstructorsConstructorDescriptionRestNettyHttpBinding(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy) -
Method Summary
Modifier and TypeMethodDescriptioncopy()voidpopulateCamelHeaders(io.netty.handler.codec.http.HttpRequest request, Map<String, Object> headers, org.apache.camel.Exchange exchange, NettyHttpConfiguration configuration) Binds from NettyHttpRequestto Camel headers as aMap.Methods inherited from class org.apache.camel.component.netty.http.DefaultNettyHttpBinding
copyCamelHeaders, getHeaderFilterStrategy, populateCamelHeaders, setHeaderFilterStrategy, shouldUrlDecodeHeader, 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:
copyin 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:NettyHttpBindingBinds from NettyHttpRequestto Camel headers as aMap. Will use the populateCamelHeaders method for populating the headers.- Specified by:
populateCamelHeadersin interfaceNettyHttpBinding- Overrides:
populateCamelHeadersin 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
-