Package org.eclipse.jetty.http
Enum HttpHeaderValue
- java.lang.Object
-
- java.lang.Enum<HttpHeaderValue>
-
- org.eclipse.jetty.http.HttpHeaderValue
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<HttpHeaderValue>
public enum HttpHeaderValue extends java.lang.Enum<HttpHeaderValue>
-
-
Field Summary
Fields Modifier and Type Field Description static Trie<HttpHeaderValue>
CACHE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
CLOSE
public static final HttpHeaderValue CLOSE
-
CHUNKED
public static final HttpHeaderValue CHUNKED
-
GZIP
public static final HttpHeaderValue GZIP
-
IDENTITY
public static final HttpHeaderValue IDENTITY
-
KEEP_ALIVE
public static final HttpHeaderValue KEEP_ALIVE
-
CONTINUE
public static final HttpHeaderValue CONTINUE
-
PROCESSING
public static final HttpHeaderValue PROCESSING
-
TE
public static final HttpHeaderValue TE
-
BYTES
public static final HttpHeaderValue BYTES
-
NO_CACHE
public static final HttpHeaderValue NO_CACHE
-
UPGRADE
public static final HttpHeaderValue UPGRADE
-
UNKNOWN
public static final HttpHeaderValue UNKNOWN
-
-
Field Detail
-
CACHE
public static final Trie<HttpHeaderValue> CACHE
-
-
Method Detail
-
values
public static HttpHeaderValue[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HttpHeaderValue c : HttpHeaderValue.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HttpHeaderValue valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
toBuffer
public java.nio.ByteBuffer toBuffer()
-
is
public boolean is(java.lang.String s)
-
asString
public java.lang.String asString()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<HttpHeaderValue>
-
hasKnownValues
public static boolean hasKnownValues(HttpHeader header)
-
-