public enum HttpHeaderValue extends Enum<HttpHeaderValue>
| Enum Constant and Description |
|---|
BYTES |
CHUNKED |
CLOSE |
CONTINUE |
GZIP |
IDENTITY |
KEEP_ALIVE |
NO_CACHE |
PROCESSING |
TE |
UNKNOWN |
UPGRADE |
| Modifier and Type | Field and Description |
|---|---|
static Trie<HttpHeaderValue> |
CACHE |
| Modifier and Type | Method and Description |
|---|---|
String |
asString() |
static boolean |
hasKnownValues(HttpHeader header) |
boolean |
is(String s) |
ByteBuffer |
toBuffer() |
String |
toString() |
static HttpHeaderValue |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpHeaderValue[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpHeaderValue CLOSE
public static final HttpHeaderValue CHUNKED
public static final HttpHeaderValue GZIP
public static final HttpHeaderValue IDENTITY
public static final HttpHeaderValue KEEP_ALIVE
public static final HttpHeaderValue CONTINUE
public static final HttpHeaderValue PROCESSING
public static final HttpHeaderValue TE
public static final HttpHeaderValue BYTES
public static final HttpHeaderValue NO_CACHE
public static final HttpHeaderValue UPGRADE
public static final HttpHeaderValue UNKNOWN
public static final Trie<HttpHeaderValue> CACHE
public static HttpHeaderValue[] values()
for (HttpHeaderValue c : HttpHeaderValue.values()) System.out.println(c);
public static HttpHeaderValue 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 ByteBuffer toBuffer()
public boolean is(String s)
public String asString()
public String toString()
toString in class Enum<HttpHeaderValue>public static boolean hasKnownValues(HttpHeader header)
Copyright © 1995-2015 Webtide. All Rights Reserved.