public enum HttpRequestHeader extends java.lang.Enum<HttpRequestHeader>
| Enum Constant and Description |
|---|
CONTENT_LENGTH |
X_HOPS |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
containsHeader(io.vertx.core.MultiMap headers,
HttpRequestHeader httpRequestHeader) |
static java.lang.Integer |
getInteger(io.vertx.core.MultiMap headers,
HttpRequestHeader httpRequestHeader)
Get the value of the provided
HttpRequestHeader as Integer. |
static java.lang.Integer |
getInteger(io.vertx.core.MultiMap headers,
HttpRequestHeader httpRequestHeader,
java.lang.Integer defaultValue)
Get the value of the provided
HttpRequestHeader or a default value as Integer. |
java.lang.String |
getName() |
static java.lang.String |
getString(io.vertx.core.MultiMap headers,
HttpRequestHeader httpRequestHeader)
Get the value of the provided
HttpRequestHeader as String. |
static HttpRequestHeader |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HttpRequestHeader[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpRequestHeader CONTENT_LENGTH
public static final HttpRequestHeader X_HOPS
public static HttpRequestHeader[] values()
for (HttpRequestHeader c : HttpRequestHeader.values()) System.out.println(c);
public static HttpRequestHeader 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 java.lang.String getName()
public static boolean containsHeader(io.vertx.core.MultiMap headers,
HttpRequestHeader httpRequestHeader)
public static java.lang.Integer getInteger(io.vertx.core.MultiMap headers,
HttpRequestHeader httpRequestHeader)
HttpRequestHeader as Integer.
Returns null in the following cases:
nullheaders - the http request headershttpRequestHeader - the http request header to get the value frompublic static java.lang.Integer getInteger(io.vertx.core.MultiMap headers,
HttpRequestHeader httpRequestHeader,
java.lang.Integer defaultValue)
HttpRequestHeader or a default value as Integer.
Returns the default value in the following cases:
nullheaders - the http request headershttpRequestHeader - the http request header to get the value fromdefaultValue - the default value to return when no value from httpRequestHeader is extractablepublic static java.lang.String getString(io.vertx.core.MultiMap headers,
HttpRequestHeader httpRequestHeader)
HttpRequestHeader as String.
Returns null in the following cases:
nullheaders - the http request headershttpRequestHeader - the http request header to get the value from