@Contract(threading=IMMUTABLE) public final class RequestCacheControl extends Object implements CacheControl
Modifier and Type | Class and Description |
---|---|
static class |
RequestCacheControl.Builder |
Modifier and Type | Field and Description |
---|---|
static RequestCacheControl |
DEFAULT |
Modifier and Type | Method and Description |
---|---|
static RequestCacheControl.Builder |
builder() |
long |
getMaxAge()
Returns the max-age value from the Cache-Control header.
|
long |
getMaxStale()
Returns the max-stale value from the Cache-Control header.
|
long |
getMinFresh()
Returns the min-fresh value from the Cache-Control header.
|
long |
getStaleIfError()
Returns the stale-if-error value from the Cache-Control header.
|
boolean |
isNoCache()
Returns the no-cache flag from the Cache-Control header.
|
boolean |
isNoStore()
Returns the no-store flag from the Cache-Control header.
|
boolean |
isOnlyIfCached()
Returns the only-if-cached flag from the Cache-Control header.
|
String |
toString() |
public static final RequestCacheControl DEFAULT
public long getMaxAge()
getMaxAge
in interface CacheControl
public long getMaxStale()
public long getMinFresh()
public boolean isNoCache()
isNoCache
in interface CacheControl
public boolean isNoStore()
isNoStore
in interface CacheControl
public boolean isOnlyIfCached()
public long getStaleIfError()
getStaleIfError
in interface CacheControl
public static RequestCacheControl.Builder builder()
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.