org.apache.camel.component.http
Class RequestEntityConverter

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

@Converter
public class RequestEntityConverter
extends Object

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


Constructor Summary
RequestEntityConverter()
           
 
Method Summary
 org.apache.commons.httpclient.methods.RequestEntity toRequestEntity(byte[] data, Exchange exchange)
           
 org.apache.commons.httpclient.methods.RequestEntity toRequestEntity(InputStream inStream, Exchange exchange)
           
 org.apache.commons.httpclient.methods.RequestEntity toRequestEntity(String str, Exchange exchange)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestEntityConverter

public RequestEntityConverter()
Method Detail

toRequestEntity

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

toRequestEntity

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

toRequestEntity

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


Apache CAMEL