Class HttpContentDecompressor

All Implemented Interfaces:
ChannelHandler, ChannelInboundHandler

public class HttpContentDecompressor extends HttpContentDecoder
Decompresses an HttpMessage and an HttpContent compressed in gzip or deflate encoding. For more information on how this handler modifies the message, please refer to HttpContentDecoder.
  • Field Details

    • strict

      private final boolean strict
    • maxAllocation

      private final int maxAllocation
  • Constructor Details

    • HttpContentDecompressor

      @Deprecated public HttpContentDecompressor()
      Create a new HttpContentDecompressor in non-strict mode.
    • HttpContentDecompressor

      public HttpContentDecompressor(int maxAllocation)
      Create a new HttpContentDecompressor in non-strict mode.
      Parameters:
      maxAllocation - Maximum size of the decompression buffer. Must be >= 0. If zero, maximum size is not limited.
    • HttpContentDecompressor

      @Deprecated public HttpContentDecompressor(boolean strict)
      Parameters:
      strict - if true use strict handling of deflate if used, otherwise handle it in a more lenient fashion.
    • HttpContentDecompressor

      public HttpContentDecompressor(boolean strict, int maxAllocation)
      Parameters:
      strict - if true use strict handling of deflate if used, otherwise handle it in a more lenient fashion.
      maxAllocation - Maximum size of the decompression buffer. Must be >= 0. If zero, maximum size is not limited.
  • Method Details