Class ResourceProperties.Cache.Cachecontrol
- java.lang.Object
- org.springframework.boot.autoconfigure.web.ResourceProperties.Cache.Cachecontrol
- Enclosing class:
- ResourceProperties.Cache
public static class ResourceProperties.Cache.Cachecontrol extends Object
Cache Control HTTP header configuration.
Constructor Summary
Constructors Constructor Description Cachecontrol()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
getCachePrivate()
Boolean
getCachePublic()
Duration
getMaxAge()
Boolean
getMustRevalidate()
Boolean
getNoCache()
Boolean
getNoStore()
Boolean
getNoTransform()
Boolean
getProxyRevalidate()
Duration
getSMaxAge()
Duration
getStaleIfError()
Duration
getStaleWhileRevalidate()
void
setCachePrivate(Boolean cachePrivate)
void
setCachePublic(Boolean cachePublic)
void
setMaxAge(Duration maxAge)
void
setMustRevalidate(Boolean mustRevalidate)
void
setNoCache(Boolean noCache)
void
setNoStore(Boolean noStore)
void
setNoTransform(Boolean noTransform)
void
setProxyRevalidate(Boolean proxyRevalidate)
void
setSMaxAge(Duration sMaxAge)
void
setStaleIfError(Duration staleIfError)
void
setStaleWhileRevalidate(Duration staleWhileRevalidate)
org.springframework.http.CacheControl
toHttpCacheControl()
Constructor Detail
Cachecontrol
public Cachecontrol()
Method Detail
getNoCache
public Boolean getNoCache()
setNoCache
public void setNoCache(Boolean noCache)
getNoStore
public Boolean getNoStore()
setNoStore
public void setNoStore(Boolean noStore)
getMustRevalidate
public Boolean getMustRevalidate()
setMustRevalidate
public void setMustRevalidate(Boolean mustRevalidate)
getNoTransform
public Boolean getNoTransform()
setNoTransform
public void setNoTransform(Boolean noTransform)
getCachePublic
public Boolean getCachePublic()
setCachePublic
public void setCachePublic(Boolean cachePublic)
getCachePrivate
public Boolean getCachePrivate()
setCachePrivate
public void setCachePrivate(Boolean cachePrivate)
getProxyRevalidate
public Boolean getProxyRevalidate()
setProxyRevalidate
public void setProxyRevalidate(Boolean proxyRevalidate)
getStaleWhileRevalidate
public Duration getStaleWhileRevalidate()
setStaleWhileRevalidate
public void setStaleWhileRevalidate(Duration staleWhileRevalidate)
getStaleIfError
public Duration getStaleIfError()
setStaleIfError
public void setStaleIfError(Duration staleIfError)
getSMaxAge
public Duration getSMaxAge()
setSMaxAge
public void setSMaxAge(Duration sMaxAge)
toHttpCacheControl
public org.springframework.http.CacheControl toHttpCacheControl()