BasicAsyncRequestProducer
or BasicAsyncResponseProducer@Deprecated public interface ConsumingNHttpEntity extends HttpEntity
HttpEntity that allows content to be streamed from a
ContentDecoder.| Modifier and Type | Method and Description |
|---|---|
void |
consumeContent(ContentDecoder decoder,
IOControl ioControl)
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.
|
consumeContent, getContent, getContentEncoding, getContentLength, getContentType, isChunked, isRepeatable, isStreaming, writeTovoid consumeContent(ContentDecoder decoder, IOControl ioControl) throws 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.ioControl - I/O control of the underlying connection.IOExceptionvoid finish()
throws IOException
IOExceptionCopyright © 2005–2022 The Apache Software Foundation. All rights reserved.