Package org.eclipse.jetty.http
Enum Class HttpHeader
- All Implemented Interfaces:
Serializable
,Comparable<HttpHeader>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionRequest Fields.Response Fields.Entity Fields.HTTP2 Fields.General Fields.Other Fields.WebSocket Fields. -
Field Summary
Modifier and TypeFieldDescriptionstatic final Index<HttpHeader>
static final EnumSet<HttpHeader>
static final EnumSet<HttpHeader>
-
Method Summary
Modifier and TypeMethodDescriptionasString()
byte[]
getBytes()
byte[]
boolean
boolean
isPseudo()
toBuffer()
toString()
static HttpHeader
Returns the enum constant of this class with the specified name.static HttpHeader[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONNECTION
General Fields. -
CACHE_CONTROL
-
DATE
-
PRAGMA
-
PROXY_CONNECTION
-
TRAILER
-
TRANSFER_ENCODING
-
UPGRADE
-
VIA
-
WARNING
-
NEGOTIATE
-
ALLOW
Entity Fields. -
CONTENT_DISPOSITION
-
CONTENT_ENCODING
-
CONTENT_LANGUAGE
-
CONTENT_LENGTH
-
CONTENT_LOCATION
-
CONTENT_MD5
-
CONTENT_RANGE
-
CONTENT_TRANSFER_ENCODING
-
CONTENT_TYPE
-
EXPIRES
-
LAST_MODIFIED
-
ACCEPT
Request Fields. -
ACCEPT_CHARSET
-
ACCEPT_ENCODING
-
ACCEPT_LANGUAGE
-
ACCESS_CONTROL_REQUEST_HEADERS
-
ACCESS_CONTROL_REQUEST_METHOD
-
AUTHORIZATION
-
EXPECT
-
FORWARDED
-
FROM
-
HOST
-
IF_MATCH
-
IF_MODIFIED_SINCE
-
IF_NONE_MATCH
-
IF_RANGE
-
IF_UNMODIFIED_SINCE
-
KEEP_ALIVE
-
MAX_FORWARDS
-
PROXY_AUTHORIZATION
-
RANGE
-
REQUEST_RANGE
-
REFERER
-
TE
-
USER_AGENT
-
X_FORWARDED_FOR
-
X_FORWARDED_PORT
-
X_FORWARDED_PROTO
-
X_FORWARDED_SERVER
-
X_FORWARDED_HOST
-
ACCEPT_RANGES
Response Fields. -
ACCESS_CONTROL_ALLOW_ORIGIN
-
ACCESS_CONTROL_ALLOW_METHODS
-
ACCESS_CONTROL_ALLOW_HEADERS
-
ACCESS_CONTROL_MAX_AGE
-
ACCESS_CONTROL_ALLOW_CREDENTIALS
-
ACCESS_CONTROL_EXPOSE_HEADERS
-
AGE
-
ALT_SVC
-
ETAG
-
LINK
-
LOCATION
-
PROXY_AUTHENTICATE
-
RETRY_AFTER
-
SERVER
-
SERVLET_ENGINE
-
TIMING_ALLOW_ORIGIN
-
VARY
-
WWW_AUTHENTICATE
-
ORIGIN
WebSocket Fields. -
SEC_WEBSOCKET_KEY
-
SEC_WEBSOCKET_VERSION
-
SEC_WEBSOCKET_EXTENSIONS
-
SEC_WEBSOCKET_SUBPROTOCOL
-
SEC_WEBSOCKET_ACCEPT
-
COOKIE
Other Fields. -
SET_COOKIE
-
SET_COOKIE2
-
MIME_VERSION
-
IDENTITY
-
X_POWERED_BY
-
HTTP2_SETTINGS
-
STRICT_TRANSPORT_SECURITY
-
C_METHOD
HTTP2 Fields. -
C_SCHEME
-
C_AUTHORITY
-
C_PATH
-
C_STATUS
-
C_PROTOCOL
-
-
Field Details
-
CONTENT_HEADERS
-
CONTENT_HEADERS_304
-
CACHE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
lowerCaseName
-
toBuffer
-
getBytes
public byte[] getBytes() -
getBytesColonSpace
public byte[] getBytesColonSpace() -
is
-
isPseudo
public boolean isPseudo()- Returns:
- True if the header is a HTTP2 Pseudo header (eg ':path')
-
asString
-
toString
- Overrides:
toString
in classEnum<HttpHeader>
-