| |
|
| java.lang.Object org.itsnat.core.UseGZip
UseGZip | public class UseGZip (Code) | | Defines some constants and utility methods related with GZip compression.
Constant values are bitwise defined to be used with | or & bit operators.
author: Jose Maria Arranz Santamaria See Also: ItsNatServletConfig.setUseGZip(int) |
Field Summary | |
final public static int | MARKUP Defines that markup is sent to the client compressed. | final public static int | NONE Defines that neither markup nor JavaScript code is sent to the client compressed. | final public static int | SCRIPT Defines that markup is sent to the client compressed. |
Method Summary | |
public static boolean | isMarkupUsingGZip(int value) Informs whether the argument includes the MARKUP
bit.
Parameters: value - the value to inspect. | public static boolean | isNoneUsingGZip(int value) Informs whether the argument is NONE.
Parameters: value - the value to inspect. | public static boolean | isScriptUsingGZip(int value) Informs whether the argument includes the SCRIPT
bit.
Parameters: value - the value to inspect. |
MARKUP | final public static int MARKUP(Code) | | Defines that markup is sent to the client compressed.
|
NONE | final public static int NONE(Code) | | Defines that neither markup nor JavaScript code is sent to the client compressed.
|
SCRIPT | final public static int SCRIPT(Code) | | Defines that markup is sent to the client compressed.
|
isMarkupUsingGZip | public static boolean isMarkupUsingGZip(int value)(Code) | | Informs whether the argument includes the MARKUP
bit.
Parameters: value - the value to inspect. true if the argument includes the MARKUP bit. |
isNoneUsingGZip | public static boolean isNoneUsingGZip(int value)(Code) | | Informs whether the argument is NONE.
Parameters: value - the value to inspect. true if the argument is NONE. |
isScriptUsingGZip | public static boolean isScriptUsingGZip(int value)(Code) | | Informs whether the argument includes the SCRIPT
bit.
Parameters: value - the value to inspect. true if the argument includes the SCRIPT bit. |
|
|
|