org.cruxframework.crux.core.shared.rest.annotation
Enum GET.CacheControl

java.lang.Object
  extended by java.lang.Enum<GET.CacheControl>
      extended by org.cruxframework.crux.core.shared.rest.annotation.GET.CacheControl
All Implemented Interfaces:
Serializable, Comparable<GET.CacheControl>
Enclosing class:
GET

public static enum GET.CacheControl
extends 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.

Author:
Thiago da Rosa de Bustamante

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

public static final GET.CacheControl 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

public static final GET.CacheControl 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

public static final GET.CacheControl NO_CACHE
Indicates that a cache MUST NOT use the response to satisfy a subsequent request without successful revalidation with the origin server.

Method Detail

values

public static GET.CacheControl[] 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 (GET.CacheControl c : GET.CacheControl.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static GET.CacheControl 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 name
NullPointerException - if the argument is null


Copyright © 2015. All rights reserved.