public class ResponseCompressionAnalyzerImpl extends Object implements ResponseCompressionAnalyzer
Constructor and Description |
---|
ResponseCompressionAnalyzerImpl(HttpServletRequest request,
CompressionAnalyzer analyzer,
Collection<String> configuration,
boolean gzipCompressionEnabled) |
Modifier and Type | Method and Description |
---|---|
boolean |
isCompressable(String contentType)
Checks to see if the indicated content type is compressable.
|
boolean |
isGZipSupported()
Checks the Accept-Encoding request header for a "gzip" token.
|
public ResponseCompressionAnalyzerImpl(HttpServletRequest request, CompressionAnalyzer analyzer, @Deprecated Collection<String> configuration, @Symbol(value="tapestry.gzip-compression-enabled") boolean gzipCompressionEnabled)
public boolean isGZipSupported()
ResponseCompressionAnalyzer
isGZipSupported
in interface ResponseCompressionAnalyzer
public boolean isCompressable(String contentType)
ResponseCompressionAnalyzer
isCompressable
in interface ResponseCompressionAnalyzer
contentType
- the mime type of the content, such as "text/html" or "image/jpeg".Copyright © 2003-2012 The Apache Software Foundation.