public static enum Http2Headers.PseudoHeaderName extends java.lang.Enum<Http2Headers.PseudoHeaderName>
枚举常量和说明 |
---|
AUTHORITY
:authority . |
METHOD
:method . |
PATH
:path . |
PROTOCOL
:protocol , as defined in RFC 8441,
Bootstrapping WebSockets with HTTP/2. |
SCHEME
:scheme . |
STATUS
:status . |
限定符和类型 | 方法和说明 |
---|---|
static Http2Headers.PseudoHeaderName |
getPseudoHeader(AsciiString header)
Returns the
Http2Headers.PseudoHeaderName corresponding to the specified header name. |
static Http2Headers.PseudoHeaderName |
getPseudoHeader(java.lang.CharSequence header)
Returns the
Http2Headers.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(AsciiString header)
Indicates whether the given header name is a valid HTTP/2 pseudo header.
|
static boolean |
isPseudoHeader(java.lang.CharSequence header)
Indicates whether the given header name is a valid HTTP/2 pseudo header.
|
static boolean |
isPseudoHeader(java.lang.String 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(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static Http2Headers.PseudoHeaderName[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final Http2Headers.PseudoHeaderName METHOD
:method
.public static final Http2Headers.PseudoHeaderName SCHEME
:scheme
.public static final Http2Headers.PseudoHeaderName AUTHORITY
:authority
.public static final Http2Headers.PseudoHeaderName PATH
:path
.public static final Http2Headers.PseudoHeaderName STATUS
:status
.public static final Http2Headers.PseudoHeaderName PROTOCOL
:protocol
, as defined in RFC 8441,
Bootstrapping WebSockets with HTTP/2.public static Http2Headers.PseudoHeaderName[] values()
for (Http2Headers.PseudoHeaderName c : Http2Headers.PseudoHeaderName.values()) System.out.println(c);
public static Http2Headers.PseudoHeaderName valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值public AsciiString value()
public static boolean hasPseudoHeaderFormat(java.lang.CharSequence headerName)
true
if the header follow the pseudo-header formatpublic static boolean isPseudoHeader(java.lang.CharSequence header)
public static boolean isPseudoHeader(AsciiString header)
public static boolean isPseudoHeader(java.lang.String header)
public static Http2Headers.PseudoHeaderName getPseudoHeader(java.lang.CharSequence header)
Http2Headers.PseudoHeaderName
corresponding to the specified header name.Http2Headers.PseudoHeaderName
if any, null
otherwise.public static Http2Headers.PseudoHeaderName getPseudoHeader(AsciiString header)
Http2Headers.PseudoHeaderName
corresponding to the specified header name.Http2Headers.PseudoHeaderName
if any, null
otherwise.public boolean isRequestOnly()
true
if the pseudo-header is to be used in a request context