Serializable
, Comparable<HeaderField>
, org.refcodes.mixin.NameAccessor
public enum HeaderField extends Enum<HeaderField> implements org.refcodes.mixin.NameAccessor
Enum Constant | Description |
---|---|
ACCEPT |
|
ACCEPT_CHARSET |
|
ACCEPT_ENCODING |
|
ACCESS_TOKEN |
The access token, see also
TokenType . |
ALLOW |
|
AUTHORIZATION |
|
CONNECTION |
|
CONTENT_ENCODING |
|
CONTENT_LANGUAGE |
|
CONTENT_LENGTH |
|
CONTENT_LOCATION |
|
CONTENT_MD5 |
|
CONTENT_RANGE |
|
CONTENT_TYPE |
|
COOKIE |
The Cookie HTTP Request-Header contains stored HTTP cookies previously
sent by the server with the
SET_COOKIE header. |
EXPIRES |
|
EXPIRES_IN |
|
EXTENSION_HEADER |
|
HOST |
|
LAST_MODIFIED |
|
REFRESH_TOKEN |
|
REQUEST_ID |
|
SCOPE |
OAuth scopes let you specify exactly how your application needs to access
a user's resource.
|
SESSION_ID |
|
SET_COOKIE |
The Set-Cookie HTTP Response-Header is used to send cookies from the
server to the user agent.
|
TOKEN_TYPE |
Token type, see also
TokenType . |
USER_AGENT |
|
WWW_AUTHENTICATE |
|
X_B3_PARENT_SPAN_ID |
B3 ids are fixed-length lowerhex encoded values.
|
X_B3_TRACE_ID |
B3 ids are fixed-length lowerhex encoded values.
|
X_B3_TRACE_SPAN_ID |
B3 ids are fixed-length lowerhex encoded values.
|
X_REQUEST_ID |
The X-RequestId Header-Field MUST be a combination of a globally unique
value in the format of a GUID followed by an increasing decimal counter
which MUST increase with every new HTTP-Request (for example,
"{E2EA6C1C-E61B-49E9-9CFB-38184F907552}:123456").
|
Modifier and Type | Method | Description |
---|---|---|
String |
getName() |
|
static HeaderField |
toHeaderField(String aHttpHeaderField) |
Retrieves the
HeaderField which corresponds to the given HTTP
Header-Field name. |
static String |
toHttpHeaderField(String aHttpHeaderField) |
Normalizes the input HTTP Header-Field to match the case of the
Header-Fields as defined in this
HeaderField enumeration. |
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 AUTHORIZATION
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
SET_COOKIE
header.public static final HeaderField SET_COOKIE
public static final HeaderField ACCEPT
public static final HeaderField ACCEPT_ENCODING
public static final HeaderField ACCEPT_CHARSET
public static final HeaderField CONNECTION
public static final HeaderField HOST
public static final HeaderField USER_AGENT
public static final HeaderField REQUEST_ID
public static final HeaderField SESSION_ID
public static final HeaderField WWW_AUTHENTICATE
public static final HeaderField X_B3_TRACE_ID
public static final HeaderField X_B3_TRACE_SPAN_ID
public static final HeaderField X_B3_PARENT_SPAN_ID
public static final HeaderField X_REQUEST_ID
public static final HeaderField SCOPE
public static final HeaderField ACCESS_TOKEN
TokenType
.public static final HeaderField REFRESH_TOKEN
public static final HeaderField TOKEN_TYPE
TokenType
.public static final HeaderField EXPIRES_IN
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.public static String toHttpHeaderField(String aHttpHeaderField)
HeaderField
enumeration. If
there is none such corresponding Header-Field, then the provided
Header-Field is returned as is.aHttpHeaderField
- The incoming Header-Field to be normalized.Copyright © 2018. All rights reserved.