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()
ResponseCompressionAnalyzer
isGZipSupported
in interface ResponseCompressionAnalyzer
public boolean isGZipEnabled(ContentType contentType)
ResponseCompressionAnalyzer
CompressionAnalyzer
to determine if the content is compressable, but only if the request
indicates the client supports compression.isGZipEnabled
in interface ResponseCompressionAnalyzer
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.