public static enum WebResponse.CacheScope extends Enum<WebResponse.CacheScope>
Enum Constant and Description |
---|
PRIVATE
only use non-public caches
Use this setting if the response is session-specific or confidential and you don't want
it to be cached on public caches or proxies.
|
PUBLIC
use all caches (private + public)
Use this value for caching if the data is not confidential or session-specific.
|
Modifier and Type | Method and Description |
---|---|
static WebResponse.CacheScope |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WebResponse.CacheScope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WebResponse.CacheScope PUBLIC
public static final WebResponse.CacheScope PRIVATE
public static WebResponse.CacheScope[] values()
for (WebResponse.CacheScope c : WebResponse.CacheScope.values()) System.out.println(c);
public static WebResponse.CacheScope valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2006–2022 Apache Software Foundation. All rights reserved.