| Modifier and Type | Field and Description |
|---|---|
| private final String[] | |
| private final CompressionConfig |
| Access | Constructor and Description |
|---|---|
| public | |
| public | CompressionEncodingFilter(CompressionConfig.
is compression on, off, or forced. compressionMode,the minimum size, in bytes, the resource must be before being considered for compression. compressionMinSize, String[] resource mime types that may be compressed. if null or zero-length, then there will be
no type restriction. compressibleMimeTypes, String[] user agents for which compression will not be performed. If null or zero-length, the
user agent will not be considered. noCompressionUserAgents, String[] aliases for the compression name as defined in the accept-encoding header of the request. aliases)Creates a new CompressionEncodingFilter based on the provided configuration details. |
| public | CompressionEncodingFilter(CompressionConfig.
is compression on, off, or forced. compressionMode,the minimum size, in bytes, the resource must be before being considered for compression. compressionMinSize, String[] resource mime types that may be compressed. if null or zero-length, then there will be
no type restriction. compressibleMimeTypes, String[] user agents for which compression will not be performed. If null or zero-length, the
user agent will not be considered. noCompressionUserAgents, String[] aliases for the compression name as defined in the accept-encoding header of the request. aliases, boolean enabled decompression of incoming data according to the content-encoding header enableDecompression)Creates a new CompressionEncodingFilter based on the provided configuration details. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | applyDecoding(final HttpHeader httpPacket)
Implements org.
|
| public boolean | applyEncoding(final HttpHeader httpPacket)
Implements org.
|
| protected static boolean | canCompressHttpResponse(final HttpResponsePacket response, final CompressionConfig compressionConfig, final String[] aliases)
Returns true if the |
| protected static boolean | canDecompressHttpRequest(final HttpRequestPacket request, final CompressionConfig config, final String[] aliases)
Returns true if the |
| aliases | back to summary |
|---|---|
| private final String[] aliases | |
| compressionConfig | back to summary |
|---|---|
| private final CompressionConfig compressionConfig | |
| CompressionEncodingFilter | back to summary |
|---|---|
| public CompressionEncodingFilter(final CompressionConfig compressionConfig, final String[] aliases) | |
| CompressionEncodingFilter | back to summary |
|---|---|
| public CompressionEncodingFilter(CompressionConfig. Creates a new CompressionEncodingFilter based on the provided configuration details.
| |
| CompressionEncodingFilter | back to summary |
|---|---|
| public CompressionEncodingFilter(CompressionConfig. Creates a new CompressionEncodingFilter based on the provided configuration details.
| |
| applyDecoding | back to summary |
|---|---|
| public boolean applyDecoding(final HttpHeader httpPacket) Implements org.
| |
| applyEncoding | back to summary |
|---|---|
| public boolean applyEncoding(final HttpHeader httpPacket) Implements org.
| |
| canCompressHttpResponse | back to summary |
|---|---|
| protected static boolean canCompressHttpResponse(final HttpResponsePacket response, final CompressionConfig compressionConfig, final String[] aliases) Returns true if the | |
| canDecompressHttpRequest | back to summary |
|---|---|
| protected static boolean canDecompressHttpRequest(final HttpRequestPacket request, final CompressionConfig config, final String[] aliases) Returns true if the | |