Package io.netty.handler.codec.http3
Enum Http3Headers.PseudoHeaderName
- java.lang.Object
-
- java.lang.Enum<Http3Headers.PseudoHeaderName>
-
- io.netty.handler.codec.http3.Http3Headers.PseudoHeaderName
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Http3Headers.PseudoHeaderName>
- Enclosing interface:
- Http3Headers
public static enum Http3Headers.PseudoHeaderName extends java.lang.Enum<Http3Headers.PseudoHeaderName>
HTTP/2 (and HTTP/3) pseudo-headers names.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getFlag()
static @Nullable Http3Headers.PseudoHeaderName
getPseudoHeader(java.lang.CharSequence name)
Returns theHttp3Headers.PseudoHeaderName
corresponding to the specified header name.static boolean
hasPseudoHeaderFormat(java.lang.CharSequence headerName)
Indicates whether the specified header follows the pseudo-header format (begins with ':' character)static boolean
isPseudoHeader(java.lang.CharSequence name)
Indicates whether the given header name is a valid HTTP/3 pseudo header.boolean
isRequestOnly()
Indicates whether the pseudo-header is to be used in a request context.AsciiString
value()
static Http3Headers.PseudoHeaderName
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Http3Headers.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 Http3Headers.PseudoHeaderName METHOD
:method
.
-
SCHEME
public static final Http3Headers.PseudoHeaderName SCHEME
:scheme
.
-
AUTHORITY
public static final Http3Headers.PseudoHeaderName AUTHORITY
:authority
.
-
PATH
public static final Http3Headers.PseudoHeaderName PATH
:path
.
-
STATUS
public static final Http3Headers.PseudoHeaderName STATUS
:status
.
-
-
Method Detail
-
values
public static Http3Headers.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 (Http3Headers.PseudoHeaderName c : Http3Headers.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 Http3Headers.PseudoHeaderName 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
-
value
public AsciiString value()
-
hasPseudoHeaderFormat
public static boolean hasPseudoHeaderFormat(java.lang.CharSequence headerName)
Indicates whether the specified header follows the pseudo-header format (begins with ':' character)- Parameters:
headerName
- the header name to check.- Returns:
true
if the header follow the pseudo-header format
-
isPseudoHeader
public static boolean isPseudoHeader(java.lang.CharSequence name)
Indicates whether the given header name is a valid HTTP/3 pseudo header.- Parameters:
name
- the header name.- Returns:
true
if the given header name is a valid HTTP/3 pseudo header,false
otherwise.
-
getPseudoHeader
@Nullable public static @Nullable Http3Headers.PseudoHeaderName getPseudoHeader(java.lang.CharSequence name)
Returns theHttp3Headers.PseudoHeaderName
corresponding to the specified header name.- Parameters:
name
- the header name.- Returns:
- corresponding
Http3Headers.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
-
getFlag
public int getFlag()
-
-