public class GzipHttpInputInterceptor extends java.lang.Object implements HttpInput.Interceptor, Destroyable
Modifier and Type | Class and Description |
---|---|
private class |
GzipHttpInputInterceptor.Decoder |
Modifier and Type | Field and Description |
---|---|
private java.nio.ByteBuffer |
_chunk |
private GzipHttpInputInterceptor.Decoder |
_decoder |
Constructor and Description |
---|
GzipHttpInputInterceptor(ByteBufferPool pool,
int bufferSize) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
HttpInput.Content |
readFrom(HttpInput.Content content) |
private final GzipHttpInputInterceptor.Decoder _decoder
private java.nio.ByteBuffer _chunk
public GzipHttpInputInterceptor(ByteBufferPool pool, int bufferSize)
public HttpInput.Content readFrom(HttpInput.Content content)
readFrom
in interface HttpInput.Interceptor
content
- The content to be intercepted (may be empty or a HttpInput.SentinelContent
.
The content will be modified with any data the interceptor consumes, but there is no requirement
that all the data is consumed by the interceptor.public void destroy()
destroy
in interface Destroyable