public enum HttpHeaderValue extends java.lang.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 |
---|---|
java.lang.String |
asString() |
static boolean |
hasKnownValues(HttpHeader header) |
boolean |
is(java.lang.String s) |
java.nio.ByteBuffer |
toBuffer() |
java.lang.String |
toString() |
static HttpHeaderValue |
valueOf(java.lang.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(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.nio.ByteBuffer toBuffer()
public boolean is(java.lang.String s)
public java.lang.String asString()
public java.lang.String toString()
toString
in class java.lang.Enum<HttpHeaderValue>
public static boolean hasKnownValues(HttpHeader header)
Copyright © 1995–2023 Webtide. All rights reserved.