public static enum ContentEncoding.Type extends Enum<ContentEncoding.Type>
Modifier and Type | Method and Description |
---|---|
String |
toString()
Prints the value as it should appear in an HTTP header
|
static ContentEncoding.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ContentEncoding.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ContentEncoding.Type GZIP
public static final ContentEncoding.Type COMPRESS
public static final ContentEncoding.Type DEFLATE
public static ContentEncoding.Type[] values()
for (ContentEncoding.Type c : ContentEncoding.Type.values()) System.out.println(c);
public static ContentEncoding.Type 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 String toString()
toString
in class Enum<ContentEncoding.Type>
Copyright © 2010–2019. All rights reserved.