Package io.milton.http
Enum Response.CacheControlResponse
- java.lang.Object
-
- java.lang.Enum<Response.CacheControlResponse>
-
- io.milton.http.Response.CacheControlResponse
-
- All Implemented Interfaces:
Serializable,Comparable<Response.CacheControlResponse>
- Enclosing interface:
- Response
public static enum Response.CacheControlResponse extends Enum<Response.CacheControlResponse>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CACHE_EXTMAX_AGEMUST_REVALIDATENO_CACHENO_STORENO_TRANSFORMPRIVATEPROXY_REVALIDATEPUBLICS_MAX_AGE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Response.CacheControlResponsevalueOf(String name)Returns the enum constant of this type with the specified name.static Response.CacheControlResponse[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PUBLIC
public static final Response.CacheControlResponse PUBLIC
-
PRIVATE
public static final Response.CacheControlResponse PRIVATE
-
NO_CACHE
public static final Response.CacheControlResponse NO_CACHE
-
NO_STORE
public static final Response.CacheControlResponse NO_STORE
-
NO_TRANSFORM
public static final Response.CacheControlResponse NO_TRANSFORM
-
MUST_REVALIDATE
public static final Response.CacheControlResponse MUST_REVALIDATE
-
PROXY_REVALIDATE
public static final Response.CacheControlResponse PROXY_REVALIDATE
-
MAX_AGE
public static final Response.CacheControlResponse MAX_AGE
-
S_MAX_AGE
public static final Response.CacheControlResponse S_MAX_AGE
-
CACHE_EXT
public static final Response.CacheControlResponse CACHE_EXT
-
-
Field Detail
-
code
public String code
-
-
Method Detail
-
values
public static Response.CacheControlResponse[] 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.CacheControlResponse c : Response.CacheControlResponse.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.CacheControlResponse 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
-
-