public class ResponseCompressionAnalyzerImpl extends Object implements ResponseCompressionAnalyzer
| Constructor and Description |
|---|
ResponseCompressionAnalyzerImpl(HttpServletRequest request,
boolean gzipCompressionEnabled,
CompressionAnalyzer compressionAnalyzer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isGZipEnabled(ContentType contentType)
Uses
CompressionAnalyzer to determine if the content is compressable, but only if the request
indicates the client supports compression. |
boolean |
isGZipSupported()
Checks the Accept-Encoding request header for a "gzip" token.
|
public ResponseCompressionAnalyzerImpl(HttpServletRequest request, @Symbol(value="tapestry.gzip-compression-enabled") boolean gzipCompressionEnabled, CompressionAnalyzer compressionAnalyzer)
public boolean isGZipSupported()
ResponseCompressionAnalyzerisGZipSupported in interface ResponseCompressionAnalyzerpublic boolean isGZipEnabled(ContentType contentType)
ResponseCompressionAnalyzerCompressionAnalyzer to determine if the content is compressable, but only if the request
indicates the client supports compression.isGZipEnabled in interface ResponseCompressionAnalyzer5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.