Package io.milton.http
Enum Response.Header
- java.lang.Object
-
- java.lang.Enum<Response.Header>
-
- io.milton.http.Response.Header
-
- All Implemented Interfaces:
Serializable,Comparable<Response.Header>
- Enclosing interface:
- Response
public static enum Response.Header extends Enum<Response.Header>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCEPT_RANGESACCESS_CONTROL_ALLOW_ORIGINALLOWCACHE_CONTROLCONTENT_ENCODINGCONTENT_LENGTHCONTENT_RANGECONTENT_TYPEDATEDAVETAGEXPIRESLAST_MODIFIEDLOCATIONLOCK_TOKENVARYWWW_AUTHENTICATE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Response.HeadervalueOf(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.
-
-
-
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
-
ACCESS_CONTROL_ALLOW_ORIGIN
public static final Response.Header ACCESS_CONTROL_ALLOW_ORIGIN
-
ACCEPT_RANGES
public static final Response.Header ACCEPT_RANGES
-
CONTENT_RANGE
public static final Response.Header CONTENT_RANGE
-
-
Field Detail
-
code
public 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(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-