public enum HeaderField extends Enum<HeaderField> implements org.refcodes.mixin.NameAccessor
Enum Constant and Description |
---|
ACCEPT |
ACCEPT_ENCODING |
ALLOW |
CONNECTION |
CONTENT_ENCODING |
CONTENT_LANGUAGE |
CONTENT_LENGTH |
CONTENT_LOCATION |
CONTENT_MD5 |
CONTENT_RANGE |
CONTENT_TYPE |
COOKIE |
CORRELATION_ID |
EXPIRES |
EXTENSION_HEADER |
HOST |
LAST_MODIFIED |
SET_COOKIE |
USER_AGENT |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
static HeaderField |
toHeaderField(String aHttpHeaderField)
Retrieves the
HeaderField which corresponds to the given HTTP
header field name. |
static HeaderField |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HeaderField[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HeaderField ALLOW
public static final HeaderField CONTENT_ENCODING
public static final HeaderField CONTENT_LANGUAGE
public static final HeaderField CONTENT_LENGTH
public static final HeaderField CONTENT_LOCATION
public static final HeaderField CONTENT_MD5
public static final HeaderField CONTENT_RANGE
public static final HeaderField CONTENT_TYPE
public static final HeaderField EXPIRES
public static final HeaderField LAST_MODIFIED
public static final HeaderField EXTENSION_HEADER
public static final HeaderField COOKIE
public static final HeaderField SET_COOKIE
public static final HeaderField ACCEPT
public static final HeaderField ACCEPT_ENCODING
public static final HeaderField CONNECTION
public static final HeaderField HOST
public static final HeaderField USER_AGENT
public static final HeaderField CORRELATION_ID
public static HeaderField[] values()
for (HeaderField c : HeaderField.values()) System.out.println(c);
public static HeaderField 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 getName()
getName
in interface org.refcodes.mixin.NameAccessor
public static HeaderField toHeaderField(String aHttpHeaderField)
HeaderField
which corresponds to the given HTTP
header field name. The provided HTTP header field name is tested case
insensitive.aHttpHeaderField
- The HTTP header field name for which to get a
unified HeaderField
.HeaderField
or null if none such
HeaderField
has yet been defined.Copyright © 2016. All rights reserved.