org.apache.camel.component.http4
Class HttpEntityConverter

java.lang.Object
  extended by org.apache.camel.component.http4.HttpEntityConverter

@Converter
public class HttpEntityConverter
extends Object

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


Constructor Summary
HttpEntityConverter()
           
 
Method Summary
 org.apache.http.HttpEntity toHttpEntity(byte[] data, org.apache.camel.Exchange exchange)
           
 org.apache.http.HttpEntity toHttpEntity(InputStream inStream, org.apache.camel.Exchange exchange)
           
 org.apache.http.HttpEntity toHttpEntity(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
 

Constructor Detail

HttpEntityConverter

public HttpEntityConverter()
Method Detail

toHttpEntity

@Converter
public org.apache.http.HttpEntity toHttpEntity(byte[] data,
                                                         org.apache.camel.Exchange exchange)
                                        throws Exception
Throws:
Exception

toHttpEntity

@Converter
public org.apache.http.HttpEntity toHttpEntity(InputStream inStream,
                                                         org.apache.camel.Exchange exchange)
                                        throws Exception
Throws:
Exception

toHttpEntity

@Converter
public org.apache.http.HttpEntity toHttpEntity(String str,
                                                         org.apache.camel.Exchange exchange)
                                        throws Exception
Throws:
Exception


Apache CAMEL