org.apache.camel.component.netty.http
Class NettyHttpConverter

java.lang.Object
  extended by org.apache.camel.component.netty.http.NettyHttpConverter

@Converter
public final class NettyHttpConverter
extends Object


Method Summary
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(org.jboss.netty.handler.codec.http.HttpResponse response, org.apache.camel.Exchange exchange)
           
static InputStream toInputStream(org.jboss.netty.handler.codec.http.HttpResponse response, org.apache.camel.Exchange exchange)
           
static String toString(org.jboss.netty.handler.codec.http.HttpResponse response, org.apache.camel.Exchange exchange)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

convertToHttpRequest

@FallbackConverter
public 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.


convertToHttpResponse

@FallbackConverter
public 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.


toString

@Converter
public static String toString(org.jboss.netty.handler.codec.http.HttpResponse response,
                                        org.apache.camel.Exchange exchange)

toBytes

@Converter
public static byte[] toBytes(org.jboss.netty.handler.codec.http.HttpResponse response,
                                       org.apache.camel.Exchange exchange)

toInputStream

@Converter
public static InputStream toInputStream(org.jboss.netty.handler.codec.http.HttpResponse response,
                                                  org.apache.camel.Exchange exchange)


Apache Camel