public enum Header extends Enum<Header>
| Enum Constant and Description |
|---|
AUTH
See
HeaderFieldNames#AUTH. |
CODE
See
HeaderFieldNames#CODE. |
INIT
See
HeaderFieldNames#INIT. |
NAME
See
HeaderFieldNames#NAME. |
| Modifier and Type | Method and Description |
|---|---|
static Header |
fromName(String name)
Finds value whose name matched with given
name. |
String |
getName()
Returns name.
|
static Header |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Header[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Header NAME
HeaderFieldNames#NAME.public static final Header INIT
HeaderFieldNames#INIT.public static final Header CODE
HeaderFieldNames#CODE.public static final Header AUTH
HeaderFieldNames#AUTH.public static Header[] values()
for (Header c : Header.values()) System.out.println(c);
public static Header 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 static Header fromName(String name)
name.name - HTTP header field-name.public String getName()
Copyright © 2011-2013. All Rights Reserved.