public enum CachePolicy extends Enum<CachePolicy>
CacheControl
.Enum Constant and Description |
---|
CUSTOM
The response cache attributes are left untouched and may be set by applicative code.
|
NO_CACHE
The response should not be cached at all by the client.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final CachePolicy NO_CACHE
public static final CachePolicy CUSTOM
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 nameNullPointerException
- if the argument is nullCopyright © 2013-2018–2019 SeedStack. All rights reserved.