Package org.eclipse.jetty.http
Enum HttpHeader
- java.lang.Object
-
- java.lang.Enum<HttpHeader>
-
- org.eclipse.jetty.http.HttpHeader
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<HttpHeader>
public enum HttpHeader extends java.lang.Enum<HttpHeader>
-
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description static Trie<HttpHeader>
CACHE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
asString()
byte[]
getBytes()
byte[]
getBytesColonSpace()
boolean
is(java.lang.String s)
boolean
isPseudo()
java.lang.String
lowerCaseName()
java.nio.ByteBuffer
toBuffer()
java.lang.String
toString()
static HttpHeader
valueOf(java.lang.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.
-
-
-
Enum Constant Detail
-
CONNECTION
public static final HttpHeader CONNECTION
General Fields.
-
CACHE_CONTROL
public static final HttpHeader CACHE_CONTROL
-
DATE
public static final HttpHeader DATE
-
PRAGMA
public static final HttpHeader PRAGMA
-
PROXY_CONNECTION
public static final HttpHeader PROXY_CONNECTION
-
TRAILER
public static final HttpHeader TRAILER
-
TRANSFER_ENCODING
public static final HttpHeader TRANSFER_ENCODING
-
UPGRADE
public static final HttpHeader UPGRADE
-
VIA
public static final HttpHeader VIA
-
WARNING
public static final HttpHeader WARNING
-
NEGOTIATE
public static final HttpHeader NEGOTIATE
-
ALLOW
public static final HttpHeader ALLOW
Entity Fields.
-
CONTENT_ENCODING
public static final HttpHeader CONTENT_ENCODING
-
CONTENT_LANGUAGE
public static final HttpHeader CONTENT_LANGUAGE
-
CONTENT_LENGTH
public static final HttpHeader CONTENT_LENGTH
-
CONTENT_LOCATION
public static final HttpHeader CONTENT_LOCATION
-
CONTENT_MD5
public static final HttpHeader CONTENT_MD5
-
CONTENT_RANGE
public static final HttpHeader CONTENT_RANGE
-
CONTENT_TYPE
public static final HttpHeader CONTENT_TYPE
-
EXPIRES
public static final HttpHeader EXPIRES
-
LAST_MODIFIED
public static final HttpHeader LAST_MODIFIED
-
ACCEPT
public static final HttpHeader ACCEPT
Request Fields.
-
ACCEPT_CHARSET
public static final HttpHeader ACCEPT_CHARSET
-
ACCEPT_ENCODING
public static final HttpHeader ACCEPT_ENCODING
-
ACCEPT_LANGUAGE
public static final HttpHeader ACCEPT_LANGUAGE
-
AUTHORIZATION
public static final HttpHeader AUTHORIZATION
-
EXPECT
public static final HttpHeader EXPECT
-
FORWARDED
public static final HttpHeader FORWARDED
-
FROM
public static final HttpHeader FROM
-
HOST
public static final HttpHeader HOST
-
IF_MATCH
public static final HttpHeader IF_MATCH
-
IF_MODIFIED_SINCE
public static final HttpHeader IF_MODIFIED_SINCE
-
IF_NONE_MATCH
public static final HttpHeader IF_NONE_MATCH
-
IF_RANGE
public static final HttpHeader IF_RANGE
-
IF_UNMODIFIED_SINCE
public static final HttpHeader IF_UNMODIFIED_SINCE
-
KEEP_ALIVE
public static final HttpHeader KEEP_ALIVE
-
MAX_FORWARDS
public static final HttpHeader MAX_FORWARDS
-
PROXY_AUTHORIZATION
public static final HttpHeader PROXY_AUTHORIZATION
-
RANGE
public static final HttpHeader RANGE
-
REQUEST_RANGE
public static final HttpHeader REQUEST_RANGE
-
REFERER
public static final HttpHeader REFERER
-
TE
public static final HttpHeader TE
-
USER_AGENT
public static final HttpHeader USER_AGENT
-
X_FORWARDED_FOR
public static final HttpHeader X_FORWARDED_FOR
-
X_FORWARDED_PORT
public static final HttpHeader X_FORWARDED_PORT
-
X_FORWARDED_PROTO
public static final HttpHeader X_FORWARDED_PROTO
-
X_FORWARDED_SERVER
public static final HttpHeader X_FORWARDED_SERVER
-
X_FORWARDED_HOST
public static final HttpHeader X_FORWARDED_HOST
-
ACCEPT_RANGES
public static final HttpHeader ACCEPT_RANGES
Response Fields.
-
AGE
public static final HttpHeader AGE
-
ETAG
public static final HttpHeader ETAG
-
LOCATION
public static final HttpHeader LOCATION
-
PROXY_AUTHENTICATE
public static final HttpHeader PROXY_AUTHENTICATE
-
RETRY_AFTER
public static final HttpHeader RETRY_AFTER
-
SERVER
public static final HttpHeader SERVER
-
SERVLET_ENGINE
public static final HttpHeader SERVLET_ENGINE
-
VARY
public static final HttpHeader VARY
-
WWW_AUTHENTICATE
public static final HttpHeader WWW_AUTHENTICATE
-
ORIGIN
public static final HttpHeader ORIGIN
WebSocket Fields.
-
SEC_WEBSOCKET_KEY
public static final HttpHeader SEC_WEBSOCKET_KEY
-
SEC_WEBSOCKET_VERSION
public static final HttpHeader SEC_WEBSOCKET_VERSION
-
SEC_WEBSOCKET_EXTENSIONS
public static final HttpHeader SEC_WEBSOCKET_EXTENSIONS
-
SEC_WEBSOCKET_SUBPROTOCOL
public static final HttpHeader SEC_WEBSOCKET_SUBPROTOCOL
-
SEC_WEBSOCKET_ACCEPT
public static final HttpHeader SEC_WEBSOCKET_ACCEPT
-
COOKIE
public static final HttpHeader COOKIE
Other Fields.
-
SET_COOKIE
public static final HttpHeader SET_COOKIE
-
SET_COOKIE2
public static final HttpHeader SET_COOKIE2
-
MIME_VERSION
public static final HttpHeader MIME_VERSION
-
IDENTITY
public static final HttpHeader IDENTITY
-
X_POWERED_BY
public static final HttpHeader X_POWERED_BY
-
HTTP2_SETTINGS
public static final HttpHeader HTTP2_SETTINGS
-
STRICT_TRANSPORT_SECURITY
public static final HttpHeader STRICT_TRANSPORT_SECURITY
-
C_METHOD
public static final HttpHeader C_METHOD
HTTP2 Fields.
-
C_SCHEME
public static final HttpHeader C_SCHEME
-
C_AUTHORITY
public static final HttpHeader C_AUTHORITY
-
C_PATH
public static final HttpHeader C_PATH
-
C_STATUS
public static final HttpHeader C_STATUS
-
UNKNOWN
public static final HttpHeader UNKNOWN
-
-
Field Detail
-
CACHE
public static final Trie<HttpHeader> CACHE
-
-
Method Detail
-
values
public static HttpHeader[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HttpHeader c : HttpHeader.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HttpHeader valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
lowerCaseName
public java.lang.String lowerCaseName()
-
toBuffer
public java.nio.ByteBuffer toBuffer()
-
getBytes
public byte[] getBytes()
-
getBytesColonSpace
public byte[] getBytesColonSpace()
-
is
public boolean is(java.lang.String s)
-
isPseudo
public boolean isPseudo()
- Returns:
- True if the header is a HTTP2 Pseudo header (eg ':path')
-
asString
public java.lang.String asString()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<HttpHeader>
-
-