public static interface CacheControl.Builder
CacheControl builder.| Modifier and Type | Method and Description |
|---|---|
CacheControl |
build()
Build the
CacheControl instance |
CacheControl.Builder |
maxAge(long maxAge)
Set the max-age cache control directive.
|
CacheControl.Builder |
mustRevalidate(boolean mustRevalidate)
Set the must-revalidate cache control directive.
|
CacheControl.Builder |
noCache(boolean noCache)
Set the no-cache cache control directive.
|
CacheControl.Builder |
noStore(boolean noStore)
Set the no-store cache control directive.
|
CacheControl.Builder |
noTransform(boolean noTransform)
Set the no-transform cache control directive.
|
CacheControl.Builder |
proxyRevalidate(boolean proxyRevalidate)
Set the proxy-revalidate cache control directive.
|
CacheControl.Builder |
setPrivate(boolean isprivate)
Set the private cache control directive.
|
CacheControl.Builder |
sMaxAge(long sMaxAge)
Set the s-maxage cache control directive.
|
CacheControl.Builder mustRevalidate(boolean mustRevalidate)
mustRevalidate - The directive to setCacheControl.Builder proxyRevalidate(boolean proxyRevalidate)
proxyRevalidate - The directive to setCacheControl.Builder maxAge(long maxAge)
maxAge - The directive to setCacheControl.Builder sMaxAge(long sMaxAge)
sMaxAge - The directive to setCacheControl.Builder noCache(boolean noCache)
noCache - The directive to setCacheControl.Builder setPrivate(boolean isprivate)
isprivate - The directive to setCacheControl.Builder noTransform(boolean noTransform)
noTransform - The directive to setCacheControl.Builder noStore(boolean noStore)
noStore - The directive to setCacheControl build()
CacheControl instanceCopyright © 2019 The Holon Platform. All rights reserved.