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 ConstantsEnum ConstantDescriptionRequest Fields.Response Fields.Entity Fields.HTTP2 Fields.General Fields.Other Fields.WebSocket Fields. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ByteBuffer
private final byte[]
private final byte[]
private final String
private final boolean
private final String
static final Trie
<HttpHeader> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
HttpHeader
(String s) private
HttpHeader
(String s, boolean pseudo) -
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_ENCODING
-
CONTENT_LANGUAGE
-
CONTENT_LENGTH
-
CONTENT_LOCATION
-
CONTENT_MD5
-
CONTENT_RANGE
-
CONTENT_TYPE
-
EXPIRES
-
LAST_MODIFIED
-
ACCEPT
Request Fields. -
ACCEPT_CHARSET
-
ACCEPT_ENCODING
-
ACCEPT_LANGUAGE
-
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. -
AGE
-
ETAG
-
LOCATION
-
PROXY_AUTHENTICATE
-
RETRY_AFTER
-
SERVER
-
SERVLET_ENGINE
-
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
-
UNKNOWN
-
-
Field Details
-
CACHE
-
_string
-
_lowerCase
-
_bytes
private final byte[] _bytes -
_bytesColonSpace
private final byte[] _bytesColonSpace -
_buffer
-
_pseudo
private final boolean _pseudo
-
-
Constructor Details
-
HttpHeader
-
HttpHeader
-
-
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>
-