public final class DeflatingGzipEntityProducer extends Object implements AsyncEntityProducer
AsyncEntityProducer through raw DEFLATE
and wraps the result in a valid GZIP container.
Memory usage is bounded (8 KiB buffers) and back-pressure from the I/O reactor is honoured.
| Constructor and Description |
|---|
DeflatingGzipEntityProducer(AsyncEntityProducer delegate) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
failed(Exception cause) |
String |
getContentEncoding() |
long |
getContentLength() |
String |
getContentType() |
Set<String> |
getTrailerNames() |
boolean |
isChunked() |
boolean |
isRepeatable() |
void |
produce(DataStreamChannel chan) |
void |
releaseResources() |
public DeflatingGzipEntityProducer(AsyncEntityProducer delegate)
public boolean isRepeatable()
isRepeatable in interface AsyncEntityProducerpublic long getContentLength()
getContentLength in interface EntityDetailspublic String getContentType()
getContentType in interface EntityDetailspublic String getContentEncoding()
getContentEncoding in interface EntityDetailspublic boolean isChunked()
isChunked in interface EntityDetailspublic Set<String> getTrailerNames()
getTrailerNames in interface EntityDetailspublic int available()
available in interface AsyncDataProducerpublic void produce(DataStreamChannel chan) throws IOException
produce in interface AsyncDataProducerIOExceptionpublic void failed(Exception cause)
failed in interface AsyncEntityProducerpublic void releaseResources()
releaseResources in interface ResourceHolderCopyright © 1999–2021 The Apache Software Foundation. All rights reserved.