Class ConfiguredHttpContentCompressor

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.ChannelDuplexHandler
io.netty.handler.codec.MessageToMessageCodec<io.netty.handler.codec.http.HttpRequest, io.netty.handler.codec.http.HttpObject>
io.netty.handler.codec.http.HttpContentEncoder
io.netty.handler.codec.http.HttpContentCompressor
tech.riemann.nif.support.tiangong.connector.ConfiguredHttpContentCompressor
All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler, io.netty.channel.ChannelOutboundHandler

public class ConfiguredHttpContentCompressor extends io.netty.handler.codec.http.HttpContentCompressor
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.netty.handler.codec.http.HttpContentEncoder

    io.netty.handler.codec.http.HttpContentEncoder.Result

    Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler

    io.netty.channel.ChannelHandler.Sharable
  • Field Summary

    Fields inherited from class io.netty.handler.codec.http.HttpContentEncoder

    DEFAULT_MAX_PIPELINE_DEPTH
  • Constructor Summary

    Constructors
    Constructor
    Description
    ConfiguredHttpContentCompressor(int compressionLevel, int minResponseSize, String[] mimeTypes)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected io.netty.handler.codec.http.HttpContentEncoder.Result
    beginEncode(io.netty.handler.codec.http.HttpResponse headers, String acceptEncoding)
     

    Methods inherited from class io.netty.handler.codec.http.HttpContentCompressor

    determineEncoding, determineWrapper, handlerAdded

    Methods inherited from class io.netty.handler.codec.http.HttpContentEncoder

    acceptOutboundMessage, channelInactive, decode, encode, handlerRemoved

    Methods inherited from class io.netty.handler.codec.MessageToMessageCodec

    acceptInboundMessage, channelRead, channelReadComplete, write

    Methods inherited from class io.netty.channel.ChannelDuplexHandler

    bind, close, connect, deregister, disconnect, flush, read

    Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter

    channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered

    Methods inherited from class io.netty.channel.ChannelHandlerAdapter

    ensureNotSharable, isSharable

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ConfiguredHttpContentCompressor

      public ConfiguredHttpContentCompressor(int compressionLevel, int minResponseSize, String[] mimeTypes)
  • Method Details

    • beginEncode

      protected io.netty.handler.codec.http.HttpContentEncoder.Result beginEncode(io.netty.handler.codec.http.HttpResponse headers, String acceptEncoding) throws Exception
      Overrides:
      beginEncode in class io.netty.handler.codec.http.HttpContentCompressor
      Throws:
      Exception