public interface CacheControl extends Serializable
Modifier and Type | Interface and Description |
---|---|
static interface |
CacheControl.Builder
CacheControl builder. |
Modifier and Type | Method and Description |
---|---|
Optional<String> |
asHeader()
Returns the cache-control directives as HTTP header value
|
static CacheControl.Builder |
builder()
Builder to create a
CacheControl instance |
long |
getMaxAge()
Get the max-age cache control directive.
|
long |
getSMaxAge()
Get the s-maxage cache control directive.
|
boolean |
isMustRevalidate()
Get the must-revalidate cache control directive.
|
boolean |
isNoCache()
Get the no-cache cache control directive.
|
boolean |
isNoStore()
Get the no-store cache control directive.
|
boolean |
isNoTransform()
Get the no-transform cache control directive.
|
boolean |
isPrivate()
Get the private cache control directive.
|
boolean |
isProxyRevalidate()
Get the proxy-revalidate cache control directive.
|
boolean isMustRevalidate()
boolean isProxyRevalidate()
long getMaxAge()
long getSMaxAge()
boolean isNoCache()
boolean isPrivate()
boolean isNoTransform()
boolean isNoStore()
Optional<String> asHeader()
static CacheControl.Builder builder()
CacheControl
instanceCopyright © 2019 The Holon Platform. All rights reserved.