Class GZipContentEncoding

    • Constructor Detail

      • GZipContentEncoding

        public GZipContentEncoding()
        Construct GZipContentEncoding using default buffer sizes.
      • GZipContentEncoding

        public GZipContentEncoding​(int inBufferSize,
                                   int outBufferSize)
        Construct GZipContentEncoding using specific buffer sizes.
        Parameters:
        inBufferSize - input buffer size
        outBufferSize - output buffer size
      • GZipContentEncoding

        public GZipContentEncoding​(int inBufferSize,
                                   int outBufferSize,
                                   EncodingFilter encoderFilter)
        Construct GZipContentEncoding using specific buffer sizes.
        Parameters:
        inBufferSize - input buffer size
        outBufferSize - output buffer size
        encoderFilter - EncodingFilter, which will decide if GZipContentEncoding should be applied to encode specific HttpHeader packet.
    • Method Detail

      • getGzipAliases

        public static String[] getGzipAliases()
      • wantDecode

        public final boolean wantDecode​(HttpHeader header)
        Description copied from interface: ContentEncoding
        Method should implement the logic, which decides if HTTP packet with the specific HttpHeader should be decoded using this ContentEncoding.
        Specified by:
        wantDecode in interface ContentEncoding
        Parameters:
        header - HTTP packet header.
        Returns:
        true, if this ContentEncoding should be used to decode the HTTP packet, or false otherwise.
      • wantEncode

        public final boolean wantEncode​(HttpHeader header)
        Description copied from interface: ContentEncoding
        Method should implement the logic, which decides if HTTP packet with the specific HttpHeader should be encoded using this ContentEncoding.
        Specified by:
        wantEncode in interface ContentEncoding
        Parameters:
        header - HTTP packet header.
        Returns:
        true, if this ContentEncoding should be used to encode the HTTP packet, or false otherwise.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object