BasicAsyncRequestProducer
or BasicAsyncResponseProducer@Deprecated public interface ProducingNHttpEntity extends HttpEntity
HttpEntity that can stream content out into a
ContentEncoder.| 限定符和类型 | 方法和说明 |
|---|---|
void |
finish()
已过时。
Notification that any resources tlb for writing can be released.
|
void |
produceContent(ContentEncoder encoder,
IOControl ioctrl)
已过时。
Notification that content should be written to the encoder.
|
consumeContent, getContent, getContentEncoding, getContentLength, getContentType, isChunked, isRepeatable, isStreaming, writeTovoid produceContent(ContentEncoder encoder, IOControl ioctrl) throws java.io.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.ioctrl - I/O control of the underlying connection.java.io.IOExceptionvoid finish()
throws java.io.IOException
java.io.IOException