public enum CacheControlDirective extends java.lang.Enum<CacheControlDirective>
| Enum Constant and Description |
|---|
MUST_REVALIDATE
The "must-revalidate" response directive indicates that once it has become stale, a cache MUST NOT use the
response to satisfy subsequent requests without successful validation on the origin server.
|
NO_CACHE
The "no-cache" response directive indicates that the response MUST NOT be used to satisfy a subsequent request
without successful validation on the origin server.
|
NO_STORE
The "no-store" response directive indicates that a cache MUST NOT store any part of either the immediate request
or response.
|
NO_TRANSFORM
The "no-transform" response directive indicates that an intermediary (regardless of whether it implements a cache)
MUST NOT transform the payload, as defined in Section 5.7.2 of [RFC7230].
|
PRIVATE
The "private" response directive indicates that the response message is intended for a single user and MUST NOT be
stored by a shared cache.
|
PROXY_REVALIDATE
The "proxy-revalidate" response directive has the same meaning as the must-revalidate response directive, except
that it does not apply to private caches.
|
PUBLIC
The "public" response directive indicates that any cache MAY store the response, even if the response would
normally be non-cacheable or cacheable only within a private cache.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toString() |
static CacheControlDirective |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CacheControlDirective[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CacheControlDirective PUBLIC
public static final CacheControlDirective PRIVATE
public static final CacheControlDirective NO_CACHE
public static final CacheControlDirective NO_STORE
public static final CacheControlDirective NO_TRANSFORM
public static final CacheControlDirective MUST_REVALIDATE
public static final CacheControlDirective PROXY_REVALIDATE
public static CacheControlDirective[] values()
for (CacheControlDirective c : CacheControlDirective.values()) System.out.println(c);
public static CacheControlDirective valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String toString()
toString in class java.lang.Enum<CacheControlDirective>Copyright © 2018 SAP SE. All Rights Reserved.