public enum HttpRequestHeader extends Enum<HttpRequestHeader>
| Enum Constant and Description |
|---|
CONNECTION |
CONTENT_LENGTH |
X_HOPS |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
containsHeader(io.vertx.core.MultiMap headers,
HttpRequestHeader httpRequestHeader) |
static Integer |
getInteger(io.vertx.core.MultiMap headers,
HttpRequestHeader httpRequestHeader)
Get the value of the provided
HttpRequestHeader as Integer. |
static Integer |
getInteger(io.vertx.core.MultiMap headers,
HttpRequestHeader httpRequestHeader,
Integer defaultValue)
Get the value of the provided
HttpRequestHeader or a default value as Integer. |
String |
getName() |
static String |
getString(io.vertx.core.MultiMap headers,
HttpRequestHeader httpRequestHeader)
Get the value of the provided
HttpRequestHeader as String. |
static HttpRequestHeader |
valueOf(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 CONNECTION
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(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getName()
public static boolean containsHeader(io.vertx.core.MultiMap headers,
HttpRequestHeader httpRequestHeader)
public static 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 Integer getInteger(io.vertx.core.MultiMap headers, HttpRequestHeader httpRequestHeader, 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 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 fromCopyright © 2016–2018. All rights reserved.