BasicAsyncRequestProducer
or BasicAsyncResponseProducer@Deprecated public interface ProducingNHttpEntity extends HttpEntity
HttpEntity that can stream content out into a
ContentEncoder.| Modifier and Type | Method and Description |
|---|---|
void |
finish()
Deprecated.
Notification that any resources allocated for writing can be released.
|
void |
produceContent(ContentEncoder encoder,
IOControl ioControl)
Deprecated.
Notification that content should be written to the encoder.
|
consumeContent, getContent, getContentEncoding, getContentLength, getContentType, isChunked, isRepeatable, isStreaming, writeTovoid produceContent(ContentEncoder encoder, IOControl ioControl) throws IOException
IOControl instance passed as a parameter to the method can be
used to suspend output events if the entity is temporarily unable to
produce more content.
When all content is finished, this MUST call ContentEncoder.complete().
Failure to do so could result in the entity never being written.
encoder - content encoder.ioControl - I/O control of the underlying connection.IOExceptionvoid finish()
throws IOException
IOExceptionCopyright © 2005–2022 The Apache Software Foundation. All rights reserved.