Configuration properties for JAX-RS GZip support. This only applies to unmanaged services.

Output Buffer Size (bufferSize)

The output buffer size. Defaults to 8192. Be careful as values <= 0 will lead to an IllegalArgumentException.

Default: 8192

Minimum Payload Size for Compression (minGzipSize)

Content will only be compressed if content length is either unknown or greater than minGzipSize.

Default: 0

Compression Level (deflateCompressionLevel)

The compression level used for deflate compression. (0-9).

deflate Wrap (deflateNoWrap)

The noWrap setting for deflate compression. Defaults to true. (true/false)

Supported HTTP Methods (methods)

Comma separated list of HTTP methods to compress. If not set, only GET requests are compressed.

Default: GET

Mime Types (mimeTypes)

Comma separated list of mime types to compress.

Excluded User Agents (excludedAgents)

Comma separated list of user agents to exclude from compression. Does a String.contains() to check if the excluded agent occurs in the user-agent header. If it does -> no compression

Excluded User Agents Patterns (excludeAgentPatterns)

Same as excludedAgents, but accepts regex patterns for more complex matching.

Excluded Paths (excludePaths)

Comma separated list of paths to exclude from compression. Does a String.startsWith(String) comparison to check if the path matches. If it does match -> no compression. To match subpaths use excludePathPatterns instead.

Excluded Path Patterns (excludePathPatterns)

Same as excludePath, but accepts regex patterns for more complex matching.

vary (vary)

Set to the value of the Vary header sent with responses that could be compressed. By default it is set to 'Vary: Accept-Encoding, User-Agent' since IE6 is excluded by default from the excludedAgents. If user-agents are not to be excluded, then this can be set to 'Vary: Accept-Encoding'. Note also that shared caches may cache copies of a resource that is varied by User-Agent - one per variation of the User-Agent, unless the cache does some normalization of the UA string.