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 CacheControlCacheControl. cachePrivate()Add a "private" directive.CacheControlCacheControl. cachePublic()Add a "public" directive.static CacheControlCacheControl. empty()Return an empty directive.static CacheControlCacheControl. maxAge(long maxAge, TimeUnit unit)Add a "max-age=" directive.static CacheControlCacheControl. maxAge(Duration maxAge)Add a "max-age=" directive.CacheControlCacheControl. mustRevalidate()Add a "must-revalidate" directive.static CacheControlCacheControl. noCache()Add a "no-cache" directive.static CacheControlCacheControl. noStore()Add a "no-store" directive.CacheControlCacheControl. noTransform()Add a "no-transform" directive.CacheControlCacheControl. proxyRevalidate()Add a "proxy-revalidate" directive.CacheControlCacheControl. sMaxAge(long sMaxAge, TimeUnit unit)Add an "s-maxage" directive.CacheControlCacheControl. sMaxAge(Duration sMaxAge)Add an "s-maxage" directive.CacheControlCacheControl. staleIfError(long staleIfError, TimeUnit unit)Add a "stale-if-error" directive.CacheControlCacheControl. staleIfError(Duration staleIfError)Add a "stale-if-error" directive.CacheControlCacheControl. staleWhileRevalidate(long staleWhileRevalidate, TimeUnit unit)Add a "stale-while-revalidate" directive.CacheControlCacheControl. staleWhileRevalidate(Duration staleWhileRevalidate)Add a "stale-while-revalidate" directive.Methods in org.springframework.http with parameters of type CacheControl Modifier and Type Method Description BResponseEntity.HeadersBuilder. cacheControl(CacheControl cacheControl)Set the caching directives for the resource, as specified by the HTTP 1.1Cache-Controlheader.voidHttpHeaders. setCacheControl(CacheControl cacheControl)Set a configuredCacheControlinstance as the new value of theCache-Controlheader.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.ResponseSpecHeaderAssertions. 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 ResourceHandlerRegistrationResourceHandlerRegistration. setCacheControl(CacheControl cacheControl)Specify theCacheControlwhich 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-Controlheader.BServerResponse.HeadersBuilder. cacheControl(CacheControl cacheControl)Set the caching directives for the resource, as specified by the HTTP 1.1Cache-Controlheader.Uses of CacheControl in org.springframework.web.reactive.resource
Methods in org.springframework.web.reactive.resource that return CacheControl Modifier and Type Method Description CacheControlResourceWebHandler. getCacheControl()Return theCacheControlinstance 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 voidResourceWebHandler. setCacheControl(CacheControl cacheControl)Set theCacheControlinstance 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 ResourceHandlerRegistrationResourceHandlerRegistration. setCacheControl(CacheControl cacheControl)Specify theCacheControlwhich 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-Controlheader.BServerResponse.HeadersBuilder. cacheControl(CacheControl cacheControl)Set the caching directives for the resource, as specified by the HTTP 1.1Cache-Controlheader.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 CacheControlWebContentInterceptor. lookupCacheControl(String urlPath)Look up aCacheControlinstance for the given URL path.Methods in org.springframework.web.servlet.mvc with parameters of type CacheControl Modifier and Type Method Description voidWebContentInterceptor. 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 CacheControlWebContentGenerator. getCacheControl()Get theCacheControlinstance 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 voidWebContentGenerator. applyCacheControl(HttpServletResponse response, CacheControl cacheControl)Set the HTTP Cache-Control header according to the given settings.voidWebContentGenerator. setCacheControl(CacheControl cacheControl)Set theCacheControlinstance to build the Cache-Control HTTP response header.