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

    • isRepeatable

      public boolean isRepeatable()
    • isStreaming

      public boolean isStreaming()
      isStreaming basically means: true if not repeatable. All our messages are now repeatable, so never require streaming.
      Returns:
      false because all Messages are now repeatable.
    • getContentLength

      public long getContentLength()
    • getContent

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

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