public class RequestCacheControl extends Object
| Modifier and Type | Field and Description |
|---|---|
static RequestCacheControl |
DEFAULT |
| Constructor and Description |
|---|
RequestCacheControl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Map<String,com.google.common.base.Optional<String>> |
getCacheExtension()
Unknown or unsupported cache control directives.
|
int |
getMaxAge()
Indicates that the client is willing to accept a response whose age is no greater than the specified time in
seconds.
|
int |
getMaxStale()
Indicates that the client is willing to accept a response that has exceeded its expiration time.
|
int |
getMinFresh()
Indicates that the client is willing to accept a response whose freshness lifetime is no less than its current
age plus the specified time in seconds.
|
int |
hashCode() |
boolean |
isNoCache()
If true, the server MUST NOT use a cached copy when responding to the request.
|
boolean |
isNoStore()
If true, a cache MUST NOT store any part of either this request or any response to it.
|
boolean |
isNoTransform()
If true, an intermediate cache or proxy MUST NOT change those headers that are listed in
section 13.5.2 as being subject to
the no-transform directive.
|
boolean |
isOnlyIfCached()
If true, a cache SHOULD either respond using a cached entry that is consistent with the other constraints of the
request, or respond with a 504 (Gateway Timeout) status.
|
String |
toString() |
static RequestCacheControl |
valueOf(String value)
Creates a new instance of public class RequestCacheControl by parsing the supplied string.
|
public static final RequestCacheControl DEFAULT
public static RequestCacheControl valueOf(String value)
value - the cache control stringIllegalArgumentException - if the supplied string cannot be parsedpublic boolean isNoCache()
public boolean isNoStore()
public int getMaxAge()
getMaxStale() directive is also included, the client is not willing to accept a stale response.public int getMaxStale()
Integer.MAX_VALUE is assigned to
max-stale, then the client is willing to accept a stale response of any age.public int getMinFresh()
public boolean isNoTransform()
public boolean isOnlyIfCached()
public Map<String,com.google.common.base.Optional<String>> getCacheExtension()
Copyright © 2014. All Rights Reserved.