org.apache.http.HttpEntityBufferingNHttpEntity, ConsumingNHttpEntityTemplateBasicAsyncRequestProducer
or BasicAsyncResponseProducer@Deprecated
public interface ConsumingNHttpEntity
extends org.apache.http.HttpEntity
HttpEntity that allows content to be streamed from a
ContentDecoder.| Modifier and Type | Method | Description |
|---|---|---|
void |
consumeContent(ContentDecoder decoder,
IOControl ioctrl) |
Deprecated.
Notification that content is available to be read from the decoder.
|
void |
finish() |
Deprecated.
Notification that any resources allocated for reading can be released.
|
void consumeContent(ContentDecoder decoder, IOControl ioctrl) throws java.io.IOException
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.decoder - content decoder.ioctrl - I/O control of the underlying connection.java.io.IOExceptionvoid finish()
throws java.io.IOException
java.io.IOException