|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry.util.io.GzipUtil
public final class GzipUtil
Encapsulates logic related to various gzip compression schemes and their rules as they apply to different browsers.
| Method Summary | |
|---|---|
static boolean |
isGzipCapable(WebRequest request)
Determines if gzip compression is appropriate/possible based on the User Agent and other limiting factors. |
static boolean |
shouldCompressContentType(String contentType)
Based on the given type of content, determines if compression is appropriate. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean isGzipCapable(WebRequest request)
request - The current web request to check the headers of.
public static boolean shouldCompressContentType(String contentType)
contentType - The content type to check. (ie "text/javascript","text/html", etc..)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||