Module io.netty.codec.http2
Package io.netty5.handler.codec.http2
Enum Http2Headers.PseudoHeaderName
- java.lang.Object
-
- java.lang.Enum<Http2Headers.PseudoHeaderName>
-
- io.netty5.handler.codec.http2.Http2Headers.PseudoHeaderName
-
- All Implemented Interfaces:
Serializable
,Comparable<Http2Headers.PseudoHeaderName>
- Enclosing interface:
- Http2Headers
public static enum Http2Headers.PseudoHeaderName extends Enum<Http2Headers.PseudoHeaderName>
HTTP/2 pseudo-headers names.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Http2Headers.PseudoHeaderName
getPseudoHeader(CharSequence header)
Returns theHttp2Headers.PseudoHeaderName
corresponding to the specified header name.static boolean
hasPseudoHeaderFormat(CharSequence headerName)
Indicates whether the specified header follows the pseudo-header format (begins with ':' character)static boolean
isPseudoHeader(CharSequence header)
Indicates whether the given header name is a valid HTTP/2 pseudo header.boolean
isRequestOnly()
Indicates whether the pseudo-header is to be used in a request context.AsciiString
value()
static Http2Headers.PseudoHeaderName
valueOf(String name)
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 Detail
-
METHOD
public static final Http2Headers.PseudoHeaderName METHOD
:method
.
-
SCHEME
public static final Http2Headers.PseudoHeaderName SCHEME
:scheme
.
-
AUTHORITY
public static final Http2Headers.PseudoHeaderName AUTHORITY
:authority
.
-
PATH
public static final Http2Headers.PseudoHeaderName PATH
:path
.
-
STATUS
public static final Http2Headers.PseudoHeaderName STATUS
:status
.
-
PROTOCOL
public static final Http2Headers.PseudoHeaderName PROTOCOL
:protocol
, as defined in RFC 8441, Bootstrapping WebSockets with HTTP/2.
-
-
Method Detail
-
values
public static Http2Headers.PseudoHeaderName[] 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 (Http2Headers.PseudoHeaderName c : Http2Headers.PseudoHeaderName.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Http2Headers.PseudoHeaderName valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
value
public AsciiString value()
-
hasPseudoHeaderFormat
public static boolean hasPseudoHeaderFormat(CharSequence headerName)
Indicates whether the specified header follows the pseudo-header format (begins with ':' character)- Returns:
true
if the header follow the pseudo-header format
-
isPseudoHeader
public static boolean isPseudoHeader(CharSequence header)
Indicates whether the given header name is a valid HTTP/2 pseudo header.
-
getPseudoHeader
public static Http2Headers.PseudoHeaderName getPseudoHeader(CharSequence header)
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
-
-