public static class CacheControl.MaxAge
extends CacheControl
Represents a cache control value with the specified max ages and re-validation strategies
CacheControl.MaxAge, CacheControl.NoCache, CacheControl.NoStore| Constructor and Description |
|---|
MaxAge(int maxAgeSeconds,
java.lang.Integer proxyMaxAgeSeconds,
boolean mustRevalidate,
boolean proxyRevalidate,
CacheControl.Visibility visibility)
Represents a cache control value with the specified max ages and re-validation strategies
|
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxAgeSeconds()
max-age in seconds
|
boolean |
getMustRevalidate()
true |
java.lang.Integer |
getProxyMaxAgeSeconds()
max-age in seconds for caching proxies
|
boolean |
getProxyRevalidate()
true |
java.lang.String |
toString() |
getVisibilitypublic MaxAge(int maxAgeSeconds,
java.lang.Integer proxyMaxAgeSeconds,
boolean mustRevalidate,
boolean proxyRevalidate,
CacheControl.Visibility visibility)
Represents a cache control value with the specified max ages and re-validation strategies
maxAgeSeconds - max-age in secondsproxyMaxAgeSeconds - max-age in seconds for caching proxiesmustRevalidate - true if a client must validate in spite of ageproxyRevalidate - true if a caching proxy must revalidate in spite of agepublic java.lang.String toString()
public int getMaxAgeSeconds()
max-age in seconds
public java.lang.Integer getProxyMaxAgeSeconds()
max-age in seconds for caching proxies
public boolean getMustRevalidate()
true
if a client must validate in spite of age
public boolean getProxyRevalidate()
true
if a caching proxy must revalidate in spite of age