public enum HttpHeader extends Enum<HttpHeader>
HttpHeaders
(released
under the Apache 2.0 license) class and wrapped into an enumeration to
provide a simple canonicalization method which constitutes a workaround
for the missing normalization of Kraken HTTP header fields (see
HttpHeaders
).
This enum is also used directly inside Drools rule definitions.Enum Constant and Description |
---|
ACCEPT
RFC 2616 (HTTP/1.1) Section 14.1
|
ACCEPT_CHARSET
RFC 2616 (HTTP/1.1) Section 14.2
|
ACCEPT_ENCODING
RFC 2616 (HTTP/1.1) Section 14.3
|
ACCEPT_LANGUAGE
RFC 2616 (HTTP/1.1) Section 14.4
|
ACCEPT_RANGES
RFC 2616 (HTTP/1.1) Section 14.5
|
AGE
RFC 2616 (HTTP/1.1) Section 14.6
|
ALLOW
RFC 1945 (HTTP/1.0) Section 10.1, RFC 2616 (HTTP/1.1) Section 14.7
|
AUTHORIZATION
RFC 1945 (HTTP/1.0) Section 10.2, RFC 2616 (HTTP/1.1) Section 14.8
|
CACHE_CONTROL
RFC 2616 (HTTP/1.1) Section 14.9
|
CONNECTION
RFC 2616 (HTTP/1.1) Section 14.10
|
CONTENT_ENCODING
RFC 1945 (HTTP/1.0) Section 10.3, RFC 2616 (HTTP/1.1) Section 14.11
|
CONTENT_LANGUAGE
RFC 2616 (HTTP/1.1) Section 14.12
|
CONTENT_LENGTH
RFC 1945 (HTTP/1.0) Section 10.4, RFC 2616 (HTTP/1.1) Section 14.13
|
CONTENT_LOCATION
RFC 2616 (HTTP/1.1) Section 14.14
|
CONTENT_MD5
RFC 2616 (HTTP/1.1) Section 14.15
|
CONTENT_RANGE
RFC 2616 (HTTP/1.1) Section 14.16
|
CONTENT_TYPE
RFC 1945 (HTTP/1.0) Section 10.5, RFC 2616 (HTTP/1.1) Section 14.17
|
DATE
RFC 1945 (HTTP/1.0) Section 10.6, RFC 2616 (HTTP/1.1) Section 14.18
|
DAV
RFC 2518 (WevDAV) Section 9.1
|
DEPTH
RFC 2518 (WevDAV) Section 9.2
|
DESTINATION
RFC 2518 (WevDAV) Section 9.3
|
ETAG
RFC 2616 (HTTP/1.1) Section 14.19
|
EXPECT
RFC 2616 (HTTP/1.1) Section 14.20
|
EXPIRES
RFC 1945 (HTTP/1.0) Section 10.7, RFC 2616 (HTTP/1.1) Section 14.21
|
FROM
RFC 1945 (HTTP/1.0) Section 10.8, RFC 2616 (HTTP/1.1) Section 14.22
|
HOST
RFC 2616 (HTTP/1.1) Section 14.23
|
IF
RFC 2518 (WevDAV) Section 9.4
|
IF_MATCH
RFC 2616 (HTTP/1.1) Section 14.24
|
IF_MODIFIED_SINCE
RFC 1945 (HTTP/1.0) Section 10.9, RFC 2616 (HTTP/1.1) Section 14.25
|
IF_NONE_MATCH
RFC 2616 (HTTP/1.1) Section 14.26
|
IF_RANGE
RFC 2616 (HTTP/1.1) Section 14.27
|
IF_UNMODIFIED_SINCE
RFC 2616 (HTTP/1.1) Section 14.28
|
LAST_MODIFIED
RFC 1945 (HTTP/1.0) Section 10.10, RFC 2616 (HTTP/1.1) Section 14.29
|
LOCATION
RFC 1945 (HTTP/1.0) Section 10.11, RFC 2616 (HTTP/1.1) Section 14.30
|
LOCK_TOKEN
RFC 2518 (WevDAV) Section 9.5
|
MAX_FORWARDS
RFC 2616 (HTTP/1.1) Section 14.31
|
OVERWRITE
RFC 2518 (WevDAV) Section 9.6
|
PRAGMA
RFC 1945 (HTTP/1.0) Section 10.12, RFC 2616 (HTTP/1.1) Section 14.32
|
PROXY_AUTHENTICATE
RFC 2616 (HTTP/1.1) Section 14.33
|
PROXY_AUTHORIZATION
RFC 2616 (HTTP/1.1) Section 14.34
|
RANGE
RFC 2616 (HTTP/1.1) Section 14.35
|
REFERER
RFC 1945 (HTTP/1.0) Section 10.13, RFC 2616 (HTTP/1.1) Section 14.36
|
RETRY_AFTER
RFC 2616 (HTTP/1.1) Section 14.37
|
SERVER
RFC 1945 (HTTP/1.0) Section 10.14, RFC 2616 (HTTP/1.1) Section 14.38
|
STATUS_URI
RFC 2518 (WevDAV) Section 9.7
|
TE
RFC 2616 (HTTP/1.1) Section 14.39
|
TIMEOUT
RFC 2518 (WevDAV) Section 9.8
|
TRAILER
RFC 2616 (HTTP/1.1) Section 14.40
|
TRANSFER_ENCODING
RFC 2616 (HTTP/1.1) Section 14.41
|
UPGRADE
RFC 2616 (HTTP/1.1) Section 14.42
|
USER_AGENT
RFC 1945 (HTTP/1.0) Section 10.15, RFC 2616 (HTTP/1.1) Section 14.43
|
VARY
RFC 2616 (HTTP/1.1) Section 14.44
|
VIA
RFC 2616 (HTTP/1.1) Section 14.45
|
WARNING
RFC 2616 (HTTP/1.1) Section 14.46
|
WWW_AUTHENTICATE |
Modifier and Type | Method and Description |
---|---|
static HttpHeader |
canonicalizeHeader(String wildHeader)
Canonicalizes a header as encountered by various decoders, i.e.
|
String |
getName() |
String |
toString() |
static HttpHeader |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpHeader[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpHeader ACCEPT
public static final HttpHeader ACCEPT_CHARSET
public static final HttpHeader ACCEPT_ENCODING
public static final HttpHeader ACCEPT_LANGUAGE
public static final HttpHeader ACCEPT_RANGES
public static final HttpHeader AGE
public static final HttpHeader ALLOW
public static final HttpHeader AUTHORIZATION
public static final HttpHeader CACHE_CONTROL
public static final HttpHeader CONNECTION
public static final HttpHeader CONTENT_ENCODING
public static final HttpHeader CONTENT_LANGUAGE
public static final HttpHeader CONTENT_LENGTH
public static final HttpHeader CONTENT_LOCATION
public static final HttpHeader CONTENT_MD5
public static final HttpHeader CONTENT_RANGE
public static final HttpHeader CONTENT_TYPE
public static final HttpHeader DATE
public static final HttpHeader DAV
public static final HttpHeader DEPTH
public static final HttpHeader DESTINATION
public static final HttpHeader ETAG
public static final HttpHeader EXPECT
public static final HttpHeader EXPIRES
public static final HttpHeader FROM
public static final HttpHeader HOST
public static final HttpHeader IF
public static final HttpHeader IF_MATCH
public static final HttpHeader IF_MODIFIED_SINCE
public static final HttpHeader IF_NONE_MATCH
public static final HttpHeader IF_RANGE
public static final HttpHeader IF_UNMODIFIED_SINCE
public static final HttpHeader LAST_MODIFIED
public static final HttpHeader LOCATION
public static final HttpHeader LOCK_TOKEN
public static final HttpHeader MAX_FORWARDS
public static final HttpHeader OVERWRITE
public static final HttpHeader PRAGMA
public static final HttpHeader PROXY_AUTHENTICATE
public static final HttpHeader PROXY_AUTHORIZATION
public static final HttpHeader RANGE
public static final HttpHeader REFERER
public static final HttpHeader RETRY_AFTER
public static final HttpHeader SERVER
public static final HttpHeader STATUS_URI
public static final HttpHeader TE
public static final HttpHeader TIMEOUT
public static final HttpHeader TRAILER
public static final HttpHeader TRANSFER_ENCODING
public static final HttpHeader UPGRADE
public static final HttpHeader USER_AGENT
public static final HttpHeader VARY
public static final HttpHeader VIA
public static final HttpHeader WARNING
public static final HttpHeader WWW_AUTHENTICATE
public static HttpHeader[] values()
for (HttpHeader c : HttpHeader.values()) System.out.println(c);
public static HttpHeader 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 HttpHeader canonicalizeHeader(String wildHeader)
wildHeader
- a non-null String that represent a HTTP header field keyIllegalArgumentException
- if no header was found for wildHeader or wildHeader is a null pointerpublic String toString()
toString
in class Enum<HttpHeader>
public String getName()
Copyright © 2013–2015 Institute of networks and security. All rights reserved.