Interface ConsumingNHttpEntity

All Superinterfaces:
org.apache.http.HttpEntity
All Known Implementing Classes:
BufferingNHttpEntity, ConsumingNHttpEntityTemplate

@Deprecated public interface ConsumingNHttpEntity extends org.apache.http.HttpEntity
A non-blocking HttpEntity that allows content to be streamed from a ContentDecoder.
Since:
4.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated.
    Notification that content is available to be read from the decoder.
    void
    Deprecated.
    Notification that any resources allocated for reading can be released.

    Methods inherited from interface org.apache.http.HttpEntity

    consumeContent, getContent, getContentEncoding, getContentLength, getContentType, isChunked, isRepeatable, isStreaming, writeTo
  • Method Details

    • consumeContent

      void consumeContent(ContentDecoder decoder, IOControl ioControl) throws IOException
      Deprecated.
      Notification that content is available to be read from the decoder. IOControl instance passed as a parameter to the method can be used to suspend input events if the entity is temporarily unable to allocate more storage to accommodate all incoming content.
      Parameters:
      decoder - content decoder.
      ioControl - I/O control of the underlying connection.
      Throws:
      IOException
    • finish

      void finish() throws IOException
      Deprecated.
      Notification that any resources allocated for reading can be released.
      Throws:
      IOException