Package io.netty.handler.codec.http2
Enum Http2Headers.PseudoHeaderName
java.lang.Object
java.lang.Enum<Http2Headers.PseudoHeaderName>
io.netty.handler.codec.http2.Http2Headers.PseudoHeaderName
- All Implemented Interfaces:
Serializable
,Comparable<Http2Headers.PseudoHeaderName>
,java.lang.constant.Constable
- Enclosing interface:
Http2Headers
HTTP/2 pseudo-headers names.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final char
private static final byte
private final boolean
private final AsciiString
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPseudoHeader
(AsciiString header) Returns theHttp2Headers.PseudoHeaderName
corresponding to the specified header name.getPseudoHeader
(CharSequence header) Returns theHttp2Headers.PseudoHeaderName
corresponding to the specified header name.private static Http2Headers.PseudoHeaderName
getPseudoHeaderName
(CharSequence header) static boolean
hasPseudoHeaderFormat
(CharSequence headerName) Indicates whether the specified header follows the pseudo-header format (begins with ':' character)static boolean
isPseudoHeader
(AsciiString header) Indicates whether the given header name is a valid HTTP/2 pseudo header.static boolean
isPseudoHeader
(CharSequence header) Indicates whether the given header name is a valid HTTP/2 pseudo header.static boolean
isPseudoHeader
(String header) Indicates whether the given header name is a valid HTTP/2 pseudo header.boolean
Indicates whether the pseudo-header is to be used in a request context.value()
Returns the enum constant of this type with the specified name.static Http2Headers.PseudoHeaderName[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
METHOD
:method
. -
SCHEME
:scheme
. -
AUTHORITY
:authority
. -
PATH
:path
. -
STATUS
:status
. -
PROTOCOL
:protocol
, as defined in RFC 8441, Bootstrapping WebSockets with HTTP/2.
-
-
Field Details
-
PSEUDO_HEADER_PREFIX
private static final char PSEUDO_HEADER_PREFIX- See Also:
-
PSEUDO_HEADER_PREFIX_BYTE
private static final byte PSEUDO_HEADER_PREFIX_BYTE- See Also:
-
value
-
requestOnly
private final boolean requestOnly
-
-
Constructor Details
-
PseudoHeaderName
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
value
-
hasPseudoHeaderFormat
Indicates whether the specified header follows the pseudo-header format (begins with ':' character)- Returns:
true
if the header follow the pseudo-header format
-
isPseudoHeader
Indicates whether the given header name is a valid HTTP/2 pseudo header. -
isPseudoHeader
Indicates whether the given header name is a valid HTTP/2 pseudo header. -
isPseudoHeader
Indicates whether the given header name is a valid HTTP/2 pseudo header. -
getPseudoHeader
Returns theHttp2Headers.PseudoHeaderName
corresponding to the specified header name.- Returns:
- corresponding
Http2Headers.PseudoHeaderName
if any,null
otherwise.
-
getPseudoHeaderName
-
getPseudoHeader
Returns theHttp2Headers.PseudoHeaderName
corresponding to the specified header name.- Returns:
- corresponding
Http2Headers.PseudoHeaderName
if any,null
otherwise.
-
isRequestOnly
public boolean isRequestOnly()Indicates whether the pseudo-header is to be used in a request context.- Returns:
true
if the pseudo-header is to be used in a request context
-