org.glassfish.grizzly.http.Compression#CompressionLevel
.public enum CompressionLevel extends Enum<CompressionLevel> implements CompressionConfig.CompressionModeI
Enum Constant and Description |
---|
FORCE
Deprecated.
|
OFF
Deprecated.
|
ON
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static CompressionLevel |
getCompressionLevel(String compression)
Deprecated.
Set compression level.
|
CompressionConfig.CompressionMode |
normalize()
Deprecated.
|
static CompressionLevel |
valueOf(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.
|
public static final CompressionLevel OFF
public static final CompressionLevel ON
public static final CompressionLevel FORCE
public static CompressionLevel[] values()
for (CompressionLevel c : CompressionLevel.values()) System.out.println(c);
public static CompressionLevel valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic CompressionConfig.CompressionMode normalize()
public static CompressionLevel getCompressionLevel(String compression)
Copyright © 2015 Oracle Corporation. All rights reserved.