public class GzipHttpOutputInterceptor extends Object implements HttpOutput.Interceptor
| Modifier and Type | Field and Description |
|---|---|
static Logger |
LOG |
static HttpField |
VARY_ACCEPT_ENCODING |
static HttpField |
VARY_ACCEPT_ENCODING_USER_AGENT |
| Constructor and Description |
|---|
GzipHttpOutputInterceptor(GzipFactory factory,
HttpChannel channel,
HttpOutput.Interceptor next,
boolean syncFlush) |
GzipHttpOutputInterceptor(GzipFactory factory,
HttpField vary,
HttpChannel channel,
HttpOutput.Interceptor next,
boolean syncFlush) |
GzipHttpOutputInterceptor(GzipFactory factory,
HttpField vary,
int bufferSize,
HttpChannel channel,
HttpOutput.Interceptor next,
boolean syncFlush) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
commit(ByteBuffer content,
boolean complete,
Callback callback) |
HttpOutput.Interceptor |
getNextInterceptor() |
boolean |
isOptimizedForDirectBuffers() |
boolean |
mightCompress() |
void |
noCompression() |
void |
noCompressionIfPossible() |
void |
write(ByteBuffer content,
boolean complete,
Callback callback) |
public static Logger LOG
public static final HttpField VARY_ACCEPT_ENCODING_USER_AGENT
public static final HttpField VARY_ACCEPT_ENCODING
public GzipHttpOutputInterceptor(GzipFactory factory, HttpChannel channel, HttpOutput.Interceptor next, boolean syncFlush)
public GzipHttpOutputInterceptor(GzipFactory factory, HttpField vary, HttpChannel channel, HttpOutput.Interceptor next, boolean syncFlush)
public GzipHttpOutputInterceptor(GzipFactory factory, HttpField vary, int bufferSize, HttpChannel channel, HttpOutput.Interceptor next, boolean syncFlush)
public HttpOutput.Interceptor getNextInterceptor()
getNextInterceptor in interface HttpOutput.Interceptorpublic boolean isOptimizedForDirectBuffers()
isOptimizedForDirectBuffers in interface HttpOutput.Interceptorpublic void write(ByteBuffer content, boolean complete, Callback callback)
write in interface HttpOutput.Interceptorprotected void commit(ByteBuffer content, boolean complete, Callback callback)
public void noCompression()
public void noCompressionIfPossible()
public boolean mightCompress()
Copyright © 1995-2016 Webtide. All Rights Reserved.