@Internal public class SmartHttpContentCompressor extends io.netty.handler.codec.http.HttpContentCompressor
HttpContentCompressor that skips encoding if the content type is not compressible or if
 the content is too small.| Modifier and Type | Method and Description | 
|---|---|
protected io.netty.handler.codec.http.HttpContentEncoder.Result | 
beginEncode(io.netty.handler.codec.http.HttpResponse headers,
           java.lang.String acceptEncoding)  | 
protected void | 
encode(io.netty.channel.ChannelHandlerContext ctx,
      io.netty.handler.codec.http.HttpObject msg,
      java.util.List<java.lang.Object> out)  | 
boolean | 
shouldSkip(io.netty.handler.codec.http.HttpResponse response)
Determines if encoding should occur based on the response. 
 | 
determineWrapper, handlerAddedacceptOutboundMessage, channelInactive, decode, handlerRemovedacceptInboundMessage, channelRead, writebind, close, connect, deregister, disconnect, flush, readchannelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredpublic boolean shouldSkip(io.netty.handler.codec.http.HttpResponse response)
response - The responseprotected void encode(io.netty.channel.ChannelHandlerContext ctx,
                      io.netty.handler.codec.http.HttpObject msg,
                      java.util.List<java.lang.Object> out)
               throws java.lang.Exception
encode in class io.netty.handler.codec.http.HttpContentEncoderjava.lang.Exceptionprotected io.netty.handler.codec.http.HttpContentEncoder.Result beginEncode(io.netty.handler.codec.http.HttpResponse headers,
                                                                            java.lang.String acceptEncoding)
                                                                     throws java.lang.Exception
beginEncode in class io.netty.handler.codec.http.HttpContentCompressorjava.lang.Exception