com.atlassian.gzipfilter.integration
Interface GzipFilterIntegration
- public interface GzipFilterIntegration
This interface is the way that applications integrate with the GzipFilter.
By using an interface instead of an abstract class, we avoid the
Fragile Base Class problem.
|
Method Summary |
java.lang.String |
getResponseEncoding(javax.servlet.http.HttpServletRequest request)
What response encoding to use. |
boolean |
useGzip()
|
useGzip
public boolean useGzip()
- Returns:
- Whether this application has gzip enabled or not
getResponseEncoding
public java.lang.String getResponseEncoding(javax.servlet.http.HttpServletRequest request)
- What response encoding to use. This is primarily used when handling the parsing of
writers to streams and vice-versa. Usually this is UTF-8, but depending on your application
this may be different.
- Parameters:
request - If you wish to parse the request for the request encoding
- Returns:
- An encoding supported by java
Copyright © 2008 Atlassian Software Systems Pty Ltd. All Rights Reserved.