Package org.apache.http.nio.entity
Interface ConsumingNHttpEntity
-
- All Superinterfaces:
org.apache.http.HttpEntity
- All Known Implementing Classes:
BufferingNHttpEntity,ConsumingNHttpEntityTemplate
@Deprecated public interface ConsumingNHttpEntity extends org.apache.http.HttpEntityDeprecated.use (4.2)BasicAsyncRequestProducerorBasicAsyncResponseProducerA non-blockingHttpEntitythat allows content to be streamed from aContentDecoder.- Since:
- 4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidconsumeContent(ContentDecoder decoder, IOControl ioControl)Deprecated.Notification that content is available to be read from the decoder.voidfinish()Deprecated.Notification that any resources allocated for reading can be released.
-
-
-
Method Detail
-
consumeContent
void consumeContent(ContentDecoder decoder, IOControl ioControl) throws java.io.IOException
Deprecated.Notification that content is available to be read from the decoder.IOControlinstance 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:
java.io.IOException
-
finish
void finish() throws java.io.IOExceptionDeprecated.Notification that any resources allocated for reading can be released.- Throws:
java.io.IOException
-
-