public class BufferContentProducer extends Object implements org.apache.http.nio.entity.HttpAsyncContentProducer
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
Logger |
| Constructor and Description |
|---|
BufferContentProducer(BufferIOController buffer,
String txId,
String role)
Primary constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
This specialization closes the content buffer.
|
boolean |
isRepeatable() |
void |
produceContent(org.apache.http.nio.ContentEncoder encoder,
org.apache.http.nio.IOControl ioctrl)
This method is only called if the response has content (which is typically the case).
|
public BufferContentProducer(BufferIOController buffer, String txId, String role)
buffer - The buffer that content will be produced fromtxId - The transaction id that this object is participating inrole - The roll of this producer (e.g. server, proxy, etc.).public boolean isRepeatable()
isRepeatable in interface org.apache.http.nio.entity.HttpAsyncContentProducerpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void produceContent(org.apache.http.nio.ContentEncoder encoder,
org.apache.http.nio.IOControl ioctrl)
throws IOException
produceContent in interface org.apache.http.nio.entity.HttpAsyncContentProducerIOExceptionCopyright © 2015–2024 Frank Stock. All rights reserved.