public class CacheControlDirectives extends Object implements CacheControl
CacheControl
implementation.Modifier and Type | Class and Description |
---|---|
static class |
CacheControlDirectives.CacheControlBuilder |
CacheControl.Builder
Constructor and Description |
---|
CacheControlDirectives() |
Modifier and Type | Method and Description |
---|---|
Optional<String> |
asHeader()
Returns the cache-control directives as HTTP header value
|
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.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
builder
public boolean isMustRevalidate()
CacheControl
isMustRevalidate
in interface CacheControl
public boolean isProxyRevalidate()
CacheControl
isProxyRevalidate
in interface CacheControl
public long getMaxAge()
CacheControl
getMaxAge
in interface CacheControl
public long getSMaxAge()
CacheControl
getSMaxAge
in interface CacheControl
public boolean isNoCache()
CacheControl
isNoCache
in interface CacheControl
public boolean isPrivate()
CacheControl
isPrivate
in interface CacheControl
public boolean isNoTransform()
CacheControl
isNoTransform
in interface CacheControl
public boolean isNoStore()
CacheControl
isNoStore
in interface CacheControl
public Optional<String> asHeader()
CacheControl
asHeader
in interface CacheControl
Copyright © 2019 The Holon Platform. All rights reserved.