Uses of Class
org.springframework.http.CacheControl
Packages that use CacheControl Package Description org.springframework.http Contains a basic abstraction over client/server-side HTTP.org.springframework.test.web.reactive.server Support for testing Spring WebFlux server endpoints viaWebTestClient
.org.springframework.web.reactive.config Spring WebFlux configuration infrastructure.org.springframework.web.reactive.function.server Provides the types that make up Spring's functional web framework for Reactive environments.org.springframework.web.reactive.resource Support classes for serving static resources.org.springframework.web.servlet.config.annotation Annotation-based setup for Spring MVC.org.springframework.web.servlet.function Provides the types that make up Spring's functional web framework for Servlet environments.org.springframework.web.servlet.mvc Standard controller implementations for the Servlet MVC framework that comes with Spring.org.springframework.web.servlet.support Support classes for Spring's web MVC framework.Uses of CacheControl in org.springframework.http
Methods in org.springframework.http that return CacheControl Modifier and Type Method Description CacheControl
CacheControl. cachePrivate()
Add a "private" directive.CacheControl
CacheControl. cachePublic()
Add a "public" directive.static CacheControl
CacheControl. empty()
Return an empty directive.static CacheControl
CacheControl. maxAge(long maxAge, TimeUnit unit)
Add a "max-age=" directive.static CacheControl
CacheControl. maxAge(Duration maxAge)
Add a "max-age=" directive.CacheControl
CacheControl. mustRevalidate()
Add a "must-revalidate" directive.static CacheControl
CacheControl. noCache()
Add a "no-cache" directive.static CacheControl
CacheControl. noStore()
Add a "no-store" directive.CacheControl
CacheControl. noTransform()
Add a "no-transform" directive.CacheControl
CacheControl. proxyRevalidate()
Add a "proxy-revalidate" directive.CacheControl
CacheControl. sMaxAge(long sMaxAge, TimeUnit unit)
Add an "s-maxage" directive.CacheControl
CacheControl. sMaxAge(Duration sMaxAge)
Add an "s-maxage" directive.CacheControl
CacheControl. staleIfError(long staleIfError, TimeUnit unit)
Add a "stale-if-error" directive.CacheControl
CacheControl. staleIfError(Duration staleIfError)
Add a "stale-if-error" directive.CacheControl
CacheControl. staleWhileRevalidate(long staleWhileRevalidate, TimeUnit unit)
Add a "stale-while-revalidate" directive.CacheControl
CacheControl. staleWhileRevalidate(Duration staleWhileRevalidate)
Add a "stale-while-revalidate" directive.Methods in org.springframework.http with parameters of type CacheControl Modifier and Type Method Description B
ResponseEntity.HeadersBuilder. cacheControl(CacheControl cacheControl)
Set the caching directives for the resource, as specified by the HTTP 1.1Cache-Control
header.void
HttpHeaders. setCacheControl(CacheControl cacheControl)
Set a configuredCacheControl
instance as the new value of theCache-Control
header.Uses of CacheControl in org.springframework.test.web.reactive.server
Methods in org.springframework.test.web.reactive.server with parameters of type CacheControl Modifier and Type Method Description WebTestClient.ResponseSpec
HeaderAssertions. cacheControl(CacheControl cacheControl)
Expect a "Cache-Control" header with the given value.Uses of CacheControl in org.springframework.web.reactive.config
Methods in org.springframework.web.reactive.config with parameters of type CacheControl Modifier and Type Method Description ResourceHandlerRegistration
ResourceHandlerRegistration. setCacheControl(CacheControl cacheControl)
Specify theCacheControl
which should be used by the resource handler.Uses of CacheControl in org.springframework.web.reactive.function.server
Methods in org.springframework.web.reactive.function.server with parameters of type CacheControl Modifier and Type Method Description EntityResponse.Builder<T>
EntityResponse.Builder. cacheControl(CacheControl cacheControl)
Set the caching directives for the resource, as specified by the HTTP 1.1Cache-Control
header.B
ServerResponse.HeadersBuilder. cacheControl(CacheControl cacheControl)
Set the caching directives for the resource, as specified by the HTTP 1.1Cache-Control
header.Uses of CacheControl in org.springframework.web.reactive.resource
Methods in org.springframework.web.reactive.resource that return CacheControl Modifier and Type Method Description CacheControl
ResourceWebHandler. getCacheControl()
Return theCacheControl
instance to build the Cache-Control HTTP response header.Methods in org.springframework.web.reactive.resource with parameters of type CacheControl Modifier and Type Method Description void
ResourceWebHandler. setCacheControl(CacheControl cacheControl)
Set theCacheControl
instance to build the Cache-Control HTTP response header.Uses of CacheControl in org.springframework.web.servlet.config.annotation
Methods in org.springframework.web.servlet.config.annotation with parameters of type CacheControl Modifier and Type Method Description ResourceHandlerRegistration
ResourceHandlerRegistration. setCacheControl(CacheControl cacheControl)
Specify theCacheControl
which should be used by the resource handler.Uses of CacheControl in org.springframework.web.servlet.function
Methods in org.springframework.web.servlet.function with parameters of type CacheControl Modifier and Type Method Description EntityResponse.Builder<T>
EntityResponse.Builder. cacheControl(CacheControl cacheControl)
Set the caching directives for the resource, as specified by the HTTP 1.1Cache-Control
header.B
ServerResponse.HeadersBuilder. cacheControl(CacheControl cacheControl)
Set the caching directives for the resource, as specified by the HTTP 1.1Cache-Control
header.Uses of CacheControl in org.springframework.web.servlet.mvc
Methods in org.springframework.web.servlet.mvc that return CacheControl Modifier and Type Method Description protected CacheControl
WebContentInterceptor. lookupCacheControl(String urlPath)
Look up aCacheControl
instance for the given URL path.Methods in org.springframework.web.servlet.mvc with parameters of type CacheControl Modifier and Type Method Description void
WebContentInterceptor. addCacheMapping(CacheControl cacheControl, String... paths)
Map specific URL paths to a specificCacheControl
.Uses of CacheControl in org.springframework.web.servlet.support
Methods in org.springframework.web.servlet.support that return CacheControl Modifier and Type Method Description CacheControl
WebContentGenerator. getCacheControl()
Get theCacheControl
instance that builds the Cache-Control HTTP response header.Methods in org.springframework.web.servlet.support with parameters of type CacheControl Modifier and Type Method Description protected void
WebContentGenerator. applyCacheControl(HttpServletResponse response, CacheControl cacheControl)
Set the HTTP Cache-Control header according to the given settings.void
WebContentGenerator. setCacheControl(CacheControl cacheControl)
Set theCacheControl
instance to build the Cache-Control HTTP response header.