Class HttpMessageEntity

java.lang.Object
org.apache.http.entity.AbstractHttpEntity
org.frankframework.http.HttpMessageEntity
All Implemented Interfaces:
org.apache.http.HttpEntity

public class HttpMessageEntity extends org.apache.http.entity.AbstractHttpEntity
Custom implementation of an HttpEntity which deals with isRepeatable(), isStreaming(), Message.getCharset() and Message.size().
Author:
Niels Meijer
  • Constructor Details

    • HttpMessageEntity

      public HttpMessageEntity(Message message)
    • HttpMessageEntity

      public HttpMessageEntity(Message message, org.apache.http.entity.ContentType contentType)
  • Method Details

    • setContentEncoding

      public void setContentEncoding(String charset)
      Overrides:
      setContentEncoding in class org.apache.http.entity.AbstractHttpEntity
    • isRepeatable

      public boolean isRepeatable()
    • isStreaming

      public boolean isStreaming()
    • getContentLength

      public long getContentLength()
    • getContent

      public InputStream getContent() throws IOException
      Throws:
      IOException
    • writeTo

      public void writeTo(OutputStream outStream) throws IOException
      Throws:
      IOException