Enum CompressionLevel
- java.lang.Object
-
- java.lang.Enum<CompressionLevel>
-
- org.glassfish.grizzly.http.server.CompressionLevel
-
- All Implemented Interfaces:
Serializable,Comparable<CompressionLevel>,org.glassfish.grizzly.http.CompressionConfig.CompressionModeI
public enum CompressionLevel extends Enum<CompressionLevel> implements org.glassfish.grizzly.http.CompressionConfig.CompressionModeI
Deprecated.pls. useorg.glassfish.grizzly.http.Compression#CompressionLevel.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static CompressionLevelgetCompressionLevel(String compression)Deprecated.Set compression level.org.glassfish.grizzly.http.CompressionConfig.CompressionModenormalize()Deprecated.static CompressionLevelvalueOf(String name)Deprecated.Returns the enum constant of this type with the specified name.static CompressionLevel[]values()Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OFF
public static final CompressionLevel OFF
Deprecated.
-
ON
public static final CompressionLevel ON
Deprecated.
-
FORCE
public static final CompressionLevel FORCE
Deprecated.
-
-
Method Detail
-
values
public static CompressionLevel[] values()
Deprecated.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 (CompressionLevel c : CompressionLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CompressionLevel valueOf(String name)
Deprecated.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
-
normalize
public org.glassfish.grizzly.http.CompressionConfig.CompressionMode normalize()
Deprecated.
-
getCompressionLevel
public static CompressionLevel getCompressionLevel(String compression)
Deprecated.Set compression level.
-
-