public class CacheControl extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CacheControl.Type |
Modifier and Type | Field and Description |
---|---|
static CacheControl |
NONE |
Modifier and Type | Method and Description |
---|---|
long |
getAge() |
CacheControl.Type |
getType() |
TimeUnit |
getUnit() |
boolean |
isMustRevalidate() |
static CacheControl |
PRIVATE(long age,
TimeUnit unit) |
static CacheControl |
PUBLIC(long age,
TimeUnit unit) |
CacheControl |
setMustRevalidate() |
public static final CacheControl NONE
public static CacheControl PUBLIC(long age, TimeUnit unit)
public static CacheControl PRIVATE(long age, TimeUnit unit)
public CacheControl.Type getType()
public long getAge()
public TimeUnit getUnit()
public boolean isMustRevalidate()
public CacheControl setMustRevalidate()