public interface CompressionConfig
Modifier and Type | Interface and Description |
---|---|
static interface |
CompressionConfig.Builder
Builds a new compression config.
|
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_COMPRESSION_MIN_SIZE
The default compression minimum size in bytes, 1024L.
|
Modifier and Type | Method and Description |
---|---|
ImmutableSet<String> |
getMimeTypeBlackList()
The response mime types which should not be compressed.
|
ImmutableSet<String> |
getMimeTypeWhiteList()
The response mime types which should be compressed.
|
long |
getMinSize()
The minimum size at which responses should be compressed, in bytes.
|
boolean |
isCompressResponses()
Whether or not responses should be compressed.
|
static CompressionConfig.Builder |
of()
Creates a new compression config builder.
|
static final long DEFAULT_COMPRESSION_MIN_SIZE
static CompressionConfig.Builder of()
boolean isCompressResponses()
long getMinSize()
ImmutableSet<String> getMimeTypeWhiteList()
If empty, defaults to all mime types not on the black list.
ImmutableSet<String> getMimeTypeBlackList()
If empty, uses a default that excludes many commonly used compressed types.