com.bradmcevoy.http
Enum Response.Header
java.lang.Object
java.lang.Enum<Response.Header>
com.bradmcevoy.http.Response.Header
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Response.Header>
- Enclosing interface:
- Response
public static enum Response.Header
- extends java.lang.Enum<Response.Header>
|
Field Summary |
java.lang.String |
code
|
|
Method Summary |
static Response.Header |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Response.Header[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
CACHE_CONTROL
public static final Response.Header CACHE_CONTROL
WWW_AUTHENTICATE
public static final Response.Header WWW_AUTHENTICATE
CONTENT_LENGTH
public static final Response.Header CONTENT_LENGTH
CONTENT_TYPE
public static final Response.Header CONTENT_TYPE
CONTENT_ENCODING
public static final Response.Header CONTENT_ENCODING
LOCATION
public static final Response.Header LOCATION
ALLOW
public static final Response.Header ALLOW
DAV
public static final Response.Header DAV
DATE
public static final Response.Header DATE
LAST_MODIFIED
public static final Response.Header LAST_MODIFIED
LOCK_TOKEN
public static final Response.Header LOCK_TOKEN
EXPIRES
public static final Response.Header EXPIRES
ETAG
public static final Response.Header ETAG
VARY
public static final Response.Header VARY
CONTENT_RANGE
public static final Response.Header CONTENT_RANGE
code
public java.lang.String code
values
public static Response.Header[] 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 (Response.Header c : Response.Header.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Response.Header 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 name
java.lang.NullPointerException - if the argument is null
Copyright © 2011. All Rights Reserved.