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) |
GzipHttpOutputInterceptor(GzipFactory factory,
HttpField vary,
HttpChannel channel,
HttpOutput.Interceptor next) |
GzipHttpOutputInterceptor(GzipFactory factory,
HttpField vary,
int bufferSize,
HttpChannel channel,
HttpOutput.Interceptor next) |
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)
public GzipHttpOutputInterceptor(GzipFactory factory, HttpField vary, HttpChannel channel, HttpOutput.Interceptor next)
public GzipHttpOutputInterceptor(GzipFactory factory, HttpField vary, int bufferSize, HttpChannel channel, HttpOutput.Interceptor next)
public HttpOutput.Interceptor getNextInterceptor()
getNextInterceptor
in interface HttpOutput.Interceptor
public boolean isOptimizedForDirectBuffers()
isOptimizedForDirectBuffers
in interface HttpOutput.Interceptor
public void write(ByteBuffer content, boolean complete, Callback callback)
write
in interface HttpOutput.Interceptor
protected void commit(ByteBuffer content, boolean complete, Callback callback)
public void noCompression()
public void noCompressionIfPossible()
public boolean mightCompress()
Copyright © 1995-2015 Webtide. All Rights Reserved.