Class RestNettyHttpBinding
- java.lang.Object
-
- org.apache.camel.component.netty.http.DefaultNettyHttpBinding
-
- org.apache.camel.component.netty.http.RestNettyHttpBinding
-
- All Implemented Interfaces:
Cloneable,NettyHttpBinding
public class RestNettyHttpBinding extends DefaultNettyHttpBinding
ANettyHttpBindingthat supports the Rest DSL.
-
-
Constructor Summary
Constructors Constructor Description RestNettyHttpBinding()RestNettyHttpBinding(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RestNettyHttpBindingcopy()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, toCamelMessage, toCamelMessage, toCamelMessage, toCamelMessage, toNettyRequest, toNettyResponse
-
-
-
-
Method Detail
-
copy
public RestNettyHttpBinding 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
-
-