Class HttpEntityConverter

java.lang.Object
org.apache.camel.component.http.HttpEntityConverter

@Converter(generateLoader=true) public final class HttpEntityConverter extends Object
Some converter methods to make it easier to convert the body to RequestEntity types.
  • Method Details

    • toHttpEntity

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

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

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