@Converter(generateLoader=true) public final class NettyHttpConverter extends Object
Modifier and Type | Method and Description |
---|---|
static Object |
convertToHttpRequest(Class<?> type,
org.apache.camel.Exchange exchange,
Object value,
org.apache.camel.spi.TypeConverterRegistry registry)
A fallback converter that allows us to easily call Java beans and use the raw Netty
HttpRequest as parameter types. |
static Object |
convertToHttpResponse(Class<?> type,
org.apache.camel.Exchange exchange,
Object value,
org.apache.camel.spi.TypeConverterRegistry registry)
A fallback converter that allows us to easily call Java beans and use the raw Netty
HttpRequest as parameter types. |
static byte[] |
toBytes(io.netty.handler.codec.http.FullHttpResponse response,
org.apache.camel.Exchange exchange) |
static InputStream |
toInputStream(io.netty.handler.codec.http.FullHttpResponse response,
org.apache.camel.Exchange exchange) |
static String |
toString(io.netty.handler.codec.http.FullHttpResponse response,
org.apache.camel.Exchange exchange) |
@Converter(fallback=true) public static Object convertToHttpRequest(Class<?> type, org.apache.camel.Exchange exchange, Object value, org.apache.camel.spi.TypeConverterRegistry registry)
HttpRequest
as parameter types.@Converter(fallback=true) public static Object convertToHttpResponse(Class<?> type, org.apache.camel.Exchange exchange, Object value, org.apache.camel.spi.TypeConverterRegistry registry)
HttpRequest
as parameter types.@Converter public static String toString(io.netty.handler.codec.http.FullHttpResponse response, org.apache.camel.Exchange exchange)
@Converter public static byte[] toBytes(io.netty.handler.codec.http.FullHttpResponse response, org.apache.camel.Exchange exchange)
@Converter public static InputStream toInputStream(io.netty.handler.codec.http.FullHttpResponse response, org.apache.camel.Exchange exchange)
Apache Camel