|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<GET.CacheControl>
org.cruxframework.crux.core.shared.rest.annotation.GET.CacheControl
public static enum GET.CacheControl
If cacheTime is zero or a negative number, than cache control assumes that no cache must be used, and append the no-store cache-control directive. If cacheTime is a positive number, than cache control inform how this cache must work. PUBLIC Indicates that the response MAY be cached by any cache, even if it would normally be non-cacheable or cacheable only within a non- shared cache. PRIVATE Indicates that all or part of the response message is intended for a single user and MUST NOT be cached by a shared cache. This allows an origin server to state that the specified parts of the response are intended for only one user and are not a valid response for requests by other users. NO_CACHE means that a cache MUST NOT use the response to satisfy a subsequent request without successful revalidation with the origin server.
| Enum Constant Summary | |
|---|---|
NO_CACHE
Indicates that a cache MUST NOT use the response to satisfy a subsequent request without successful revalidation with the origin server. |
|
PRIVATE
Indicates that all or part of the response message is intended for a single user and MUST NOT be cached by a shared cache. |
|
PUBLIC
Indicates that the response MAY be cached by any cache, even if it would normally be non-cacheable or cacheable only within a non- shared cache. |
|
| Method Summary | |
|---|---|
static GET.CacheControl |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static GET.CacheControl[] |
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 GET.CacheControl PUBLIC
public static final GET.CacheControl PRIVATE
public static final GET.CacheControl NO_CACHE
| Method Detail |
|---|
public static GET.CacheControl[] values()
for (GET.CacheControl c : GET.CacheControl.values()) System.out.println(c);
public static GET.CacheControl 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 null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||