Uses of Class
org.springframework.http.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
Modifier and TypeMethodDescriptionCacheControl.cachePrivate()
Add a "private" directive.CacheControl.cachePublic()
Add a "public" directive.static CacheControl
CacheControl.empty()
Return an empty 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.Modifier 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
Modifier and TypeMethodDescriptionHeaderAssertions.cacheControl
(CacheControl cacheControl) Expect a "Cache-Control" header with the given value. -
Uses of CacheControl in org.springframework.web.reactive.config
Modifier 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
Modifier 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
Modifier and TypeMethodDescriptionResourceWebHandler.getCacheControl()
Return theCacheControl
instance to build the Cache-Control HTTP response header.Modifier 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
Modifier and TypeMethodDescriptionResourceHandlerRegistration.setCacheControl
(CacheControl cacheControl) Specify theCacheControl
which should be used by the resource handler. -
Uses of CacheControl in org.springframework.web.servlet.function
Modifier 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
Modifier 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
.Modifier and TypeMethodDescriptionvoid
WebContentInterceptor.addCacheMapping
(CacheControl cacheControl, String... paths) Map specific URL paths to a specificCacheControl
. -
Uses of CacheControl in org.springframework.web.servlet.support
Modifier and TypeMethodDescriptionfinal CacheControl
WebContentGenerator.getCacheControl()
Get theCacheControl
instance that builds the Cache-Control HTTP response header.Modifier 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.