public enum HttpHeader extends Enum<HttpHeader>
| Enum Constant and Description |
|---|
CACHE_CONTROL |
CONTENT_ENCODING |
ETAG |
EXPIRES |
IF_MODIFIED_SINCE |
IF_NONE_MATCH |
LAST_MODIFIED |
PRAGMA |
| Modifier and Type | Method and Description |
|---|---|
String |
getHeaderName() |
String |
toString()
Use this method instead of name() to get the header name.
|
static HttpHeader |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpHeader[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpHeader CACHE_CONTROL
public static final HttpHeader LAST_MODIFIED
public static final HttpHeader ETAG
public static final HttpHeader EXPIRES
public static final HttpHeader IF_MODIFIED_SINCE
public static final HttpHeader IF_NONE_MATCH
public static final HttpHeader CONTENT_ENCODING
public static final HttpHeader PRAGMA
public static HttpHeader[] values()
for (HttpHeader c : HttpHeader.values()) System.out.println(c);
public static HttpHeader 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 getHeaderName()
public String toString()
toString in class Enum<HttpHeader>Copyright © 2008-2013. All Rights Reserved.