Class AdaptrisMessageEntity

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, org.apache.hc.core5.http.EntityDetails, org.apache.hc.core5.http.HttpEntity

    public final class AdaptrisMessageEntity
    extends org.apache.hc.core5.http.io.entity.AbstractHttpEntity
    A streamed, repeatable entity that obtains its content from the associated InterlokMessage.getInputStream().
    See Also:
    AbstractHttpEntity
    • Method Detail

      • isRepeatable

        public boolean isRepeatable()
        Specified by:
        isRepeatable in interface org.apache.hc.core5.http.HttpEntity
        Overrides:
        isRepeatable in class org.apache.hc.core5.http.io.entity.AbstractHttpEntity
      • getContentLength

        public long getContentLength()
      • getContent

        public java.io.InputStream getContent()
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • writeTo

        public void writeTo​(java.io.OutputStream output)
                     throws java.io.IOException
        Specified by:
        writeTo in interface org.apache.hc.core5.http.HttpEntity
        Overrides:
        writeTo in class org.apache.hc.core5.http.io.entity.AbstractHttpEntity
        Throws:
        java.io.IOException
      • isStreaming

        public boolean isStreaming()
      • close

        public void close()
                   throws java.io.IOException
        Throws:
        java.io.IOException