|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<CachePolicy>
net.rossillo.spring.web.mvc.CachePolicy
public enum CachePolicy
Provides an enumeration of cache control policies.
| Enum Constant Summary | |
|---|---|
MUST_REVALIDATE
Tells caches that they must obey any freshness information you give them. |
|
NO_CACHE
Forces caches to submit the request to the origin server for validation before releasing a cached copy. |
|
NO_STORE
Instructs caches not to keep a copy of the representation under any conditions. |
|
PRIVATE
Allows caches that are specific to one user (e.g., in a browser) to store the response; shared caches (e.g., in a proxy) may not. |
|
PROXY_REVALIDATE
Similar to MUST_REVALIDATE, except that it only applies to proxy caches. |
|
PUBLIC
Marks authenticated responses as cacheable. |
|
| Method Summary | |
|---|---|
String |
policy()
Returns the HTTP cache-control header value for this policy. |
static CachePolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static CachePolicy[] |
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 |
|---|
public static final CachePolicy NO_CACHE
public static final CachePolicy NO_STORE
public static final CachePolicy MUST_REVALIDATE
public static final CachePolicy PROXY_REVALIDATE
MUST_REVALIDATE, except that it only applies to proxy caches.
public static final CachePolicy PRIVATE
public static final CachePolicy PUBLIC
| Method Detail |
|---|
public static CachePolicy[] values()
for (CachePolicy c : CachePolicy.values()) System.out.println(c);
public static CachePolicy valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic String policy()
cache-control header value for this policy.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||