public static enum Http2Headers.PseudoHeaderName extends java.lang.Enum<Http2Headers.PseudoHeaderName>
| Enum Constant and Description |
|---|
AUTHORITY
:authority. |
METHOD
:method. |
PATH
:path. |
SCHEME
:scheme. |
STATUS
:status. |
| Modifier and Type | Method and Description |
|---|---|
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(java.lang.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(java.lang.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.
|
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 Http2Headers.PseudoHeaderName[] values()
for (Http2Headers.PseudoHeaderName c : Http2Headers.PseudoHeaderName.values()) System.out.println(c);
public static Http2Headers.PseudoHeaderName valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic 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 Http2Headers.PseudoHeaderName getPseudoHeader(java.lang.CharSequence 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 contextCopyright © 2008–2019 The Netty Project. All rights reserved.