org.apache.camel.component.http
Class RequestEntityConverter

java.lang.Object
  extended by org.apache.camel.component.http.RequestEntityConverter

@Converter
public final class RequestEntityConverter
extends Object

Some converter methods to make it easier to convert the body to RequestEntity types.


Method Summary
static org.apache.commons.httpclient.methods.RequestEntity toRequestEntity(byte[] data, org.apache.camel.Exchange exchange)
           
static org.apache.commons.httpclient.methods.RequestEntity toRequestEntity(InputStream inStream, org.apache.camel.Exchange exchange)
           
static org.apache.commons.httpclient.methods.RequestEntity toRequestEntity(String str, 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

toRequestEntity

@Converter
public static org.apache.commons.httpclient.methods.RequestEntity toRequestEntity(byte[] data,
                                                                                            org.apache.camel.Exchange exchange)
                                                                           throws Exception
Throws:
Exception

toRequestEntity

@Converter
public static org.apache.commons.httpclient.methods.RequestEntity toRequestEntity(InputStream inStream,
                                                                                            org.apache.camel.Exchange exchange)
                                                                           throws Exception
Throws:
Exception

toRequestEntity

@Converter
public static org.apache.commons.httpclient.methods.RequestEntity toRequestEntity(String str,
                                                                                            org.apache.camel.Exchange exchange)
                                                                           throws Exception
Throws:
Exception


Apache Camel