Package org.glassfish.grizzly.http
Enum CompressionConfig.CompressionMode
- java.lang.Object
-
- java.lang.Enum<CompressionConfig.CompressionMode>
-
- org.glassfish.grizzly.http.CompressionConfig.CompressionMode
-
- All Implemented Interfaces:
Serializable,Comparable<CompressionConfig.CompressionMode>,CompressionConfig.CompressionModeI
- Enclosing class:
- CompressionConfig
public static enum CompressionConfig.CompressionMode extends Enum<CompressionConfig.CompressionMode> implements CompressionConfig.CompressionModeI
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CompressionConfig.CompressionModefromString(String mode)Returns theCompressionConfig.CompressionModebased on the string representation.static CompressionConfig.CompressionModevalueOf(String name)Returns the enum constant of this type with the specified name.static CompressionConfig.CompressionMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OFF
public static final CompressionConfig.CompressionMode OFF
-
ON
public static final CompressionConfig.CompressionMode ON
-
FORCE
public static final CompressionConfig.CompressionMode FORCE
-
-
Method Detail
-
values
public static CompressionConfig.CompressionMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CompressionConfig.CompressionMode c : CompressionConfig.CompressionMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CompressionConfig.CompressionMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
fromString
public static CompressionConfig.CompressionMode fromString(String mode)
Returns theCompressionConfig.CompressionModebased on the string representation.
-
-