Class CompressionEncodingFilter

    • Constructor Detail

      • CompressionEncodingFilter

        public CompressionEncodingFilter​(CompressionConfig compressionConfig,
                                         java.lang.String[] aliases)
      • CompressionEncodingFilter

        public CompressionEncodingFilter​(CompressionConfig.CompressionModeI compressionMode,
                                         int compressionMinSize,
                                         java.lang.String[] compressibleMimeTypes,
                                         java.lang.String[] noCompressionUserAgents,
                                         java.lang.String[] aliases)
        Creates a new CompressionEncodingFilter based on the provided configuration details.
        Parameters:
        compressionMode - is compression on, off, or forced.
        compressionMinSize - the minimum size, in bytes, the resource must be before being considered for compression.
        compressibleMimeTypes - resource mime types that may be compressed. if null or zero-length, then there will be no type restriction.
        noCompressionUserAgents - user agents for which compression will not be performed. If null or zero-length, the user agent will not be considered.
        aliases - aliases for the compression name as defined in the accept-encoding header of the request.
      • CompressionEncodingFilter

        public CompressionEncodingFilter​(CompressionConfig.CompressionModeI compressionMode,
                                         int compressionMinSize,
                                         java.lang.String[] compressibleMimeTypes,
                                         java.lang.String[] noCompressionUserAgents,
                                         java.lang.String[] aliases,
                                         boolean enableDecompression)
        Creates a new CompressionEncodingFilter based on the provided configuration details.
        Parameters:
        compressionMode - is compression on, off, or forced.
        compressionMinSize - the minimum size, in bytes, the resource must be before being considered for compression.
        compressibleMimeTypes - resource mime types that may be compressed. if null or zero-length, then there will be no type restriction.
        noCompressionUserAgents - user agents for which compression will not be performed. If null or zero-length, the user agent will not be considered.
        aliases - aliases for the compression name as defined in the accept-encoding header of the request.
        enableDecompression - enabled decompression of incoming data according to the content-encoding header
        Since:
        2.3.29