com.bradmcevoy.http
Enum Response.Header

java.lang.Object
  extended by java.lang.Enum<Response.Header>
      extended by 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>


Enum Constant Summary
ALLOW
           
CACHE_CONTROL
           
CONTENT_ENCODING
           
CONTENT_LENGTH
           
CONTENT_RANGE
           
CONTENT_TYPE
           
DATE
           
DAV
           
ETAG
           
EXPIRES
           
LAST_MODIFIED
           
LOCATION
           
LOCK_TOKEN
           
VARY
           
WWW_AUTHENTICATE
           
 
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
 

Enum Constant Detail

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
Field Detail

code

public java.lang.String code
Method Detail

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.