Uses of Class
org.springframework.http.CacheControl
Packages that use CacheControl
Package
Description
Contains a basic abstraction over client/server-side HTTP.
Support for testing Spring WebFlux server endpoints via
WebTestClient
.Spring WebFlux configuration infrastructure.
Provides the types that make up Spring's functional web framework for Reactive environments.
Support classes for serving static resources.
Annotation-based setup for Spring MVC.
Provides the types that make up Spring's functional web framework for Servlet environments.
Standard controller implementations for the Servlet MVC framework that comes with
Spring.
Support classes for Spring's web MVC framework.
-
Uses of CacheControl in org.springframework.http
Methods in org.springframework.http that return CacheControlModifier and TypeMethodDescriptionCacheControl.cachePrivate()
Add a "private" directive.CacheControl.cachePublic()
Add a "public" directive.static CacheControl
CacheControl.empty()
Return an empty directive.CacheControl.immutable()
Add an "immutable" directive.static CacheControl
Add a "max-age=" directive.static CacheControl
Add a "max-age=" directive.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.noTransform()
Add a "no-transform" directive.CacheControl.proxyRevalidate()
Add a "proxy-revalidate" directive.Add an "s-maxage" directive.Add an "s-maxage" directive.CacheControl.staleIfError
(long staleIfError, TimeUnit unit) Add a "stale-if-error" directive.CacheControl.staleIfError
(Duration staleIfError) Add a "stale-if-error" directive.CacheControl.staleWhileRevalidate
(long staleWhileRevalidate, TimeUnit unit) Add a "stale-while-revalidate" directive.CacheControl.staleWhileRevalidate
(Duration staleWhileRevalidate) Add a "stale-while-revalidate" directive.Methods in org.springframework.http with parameters of type CacheControlModifier and TypeMethodDescriptionResponseEntity.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 CacheControlModifier and TypeMethodDescriptionHeaderAssertions.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 CacheControlModifier and TypeMethodDescriptionResourceHandlerRegistration.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 CacheControlModifier and TypeMethodDescriptionEntityResponse.Builder.cacheControl
(CacheControl cacheControl) Set the caching directives for the resource, as specified by the HTTP 1.1Cache-Control
header.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 CacheControlModifier and TypeMethodDescriptionResourceWebHandler.getCacheControl()
Return theCacheControl
instance to build the Cache-Control HTTP response header.Methods in org.springframework.web.reactive.resource with parameters of type CacheControlModifier and TypeMethodDescriptionvoid
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 CacheControlModifier and TypeMethodDescriptionResourceHandlerRegistration.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 CacheControlModifier and TypeMethodDescriptionEntityResponse.Builder.cacheControl
(CacheControl cacheControl) Set the caching directives for the resource, as specified by the HTTP 1.1Cache-Control
header.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 CacheControlModifier and TypeMethodDescriptionprotected CacheControl
WebContentInterceptor.lookupCacheControl
(String lookupPath) Find aCacheControl
instance for the given String lookupPath.protected CacheControl
WebContentInterceptor.lookupCacheControl
(PathContainer path) Find aCacheControl
instance for the given parsedpath
.Methods in org.springframework.web.servlet.mvc with parameters of type CacheControlModifier and TypeMethodDescriptionvoid
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 CacheControlModifier and TypeMethodDescriptionfinal 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 CacheControlModifier and TypeMethodDescriptionprotected final void
WebContentGenerator.applyCacheControl
(HttpServletResponse response, CacheControl cacheControl) Set the HTTP Cache-Control header according to the given settings.final void
WebContentGenerator.setCacheControl
(CacheControl cacheControl) Set theCacheControl
instance to build the Cache-Control HTTP response header.