类的使用
org.springframework.http.CacheControl
使用CacheControl的程序包 程序包 说明 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.org.springframework.http中CacheControl的使用
返回CacheControl的org.springframework.http中的方法 修饰符和类型 方法 说明 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.参数类型为CacheControl的org.springframework.http中的方法 修饰符和类型 方法 说明 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.org.springframework.test.web.reactive.server中CacheControl的使用
参数类型为CacheControl的org.springframework.test.web.reactive.server中的方法 修饰符和类型 方法 说明 WebTestClient.ResponseSpec
HeaderAssertions. cacheControl(CacheControl cacheControl)
Expect a "Cache-Control" header with the given value.org.springframework.web.reactive.config中CacheControl的使用
参数类型为CacheControl的org.springframework.web.reactive.config中的方法 修饰符和类型 方法 说明 ResourceHandlerRegistration
ResourceHandlerRegistration. setCacheControl(CacheControl cacheControl)
Specify theCacheControl
which should be used by the resource handler.org.springframework.web.reactive.function.server中CacheControl的使用
参数类型为CacheControl的org.springframework.web.reactive.function.server中的方法 修饰符和类型 方法 说明 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.org.springframework.web.reactive.resource中CacheControl的使用
返回CacheControl的org.springframework.web.reactive.resource中的方法 修饰符和类型 方法 说明 CacheControl
ResourceWebHandler. getCacheControl()
Return theCacheControl
instance to build the Cache-Control HTTP response header.参数类型为CacheControl的org.springframework.web.reactive.resource中的方法 修饰符和类型 方法 说明 void
ResourceWebHandler. setCacheControl(CacheControl cacheControl)
Set theCacheControl
instance to build the Cache-Control HTTP response header.org.springframework.web.servlet.config.annotation中CacheControl的使用
参数类型为CacheControl的org.springframework.web.servlet.config.annotation中的方法 修饰符和类型 方法 说明 ResourceHandlerRegistration
ResourceHandlerRegistration. setCacheControl(CacheControl cacheControl)
Specify theCacheControl
which should be used by the resource handler.org.springframework.web.servlet.function中CacheControl的使用
参数类型为CacheControl的org.springframework.web.servlet.function中的方法 修饰符和类型 方法 说明 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.org.springframework.web.servlet.mvc中CacheControl的使用
返回CacheControl的org.springframework.web.servlet.mvc中的方法 修饰符和类型 方法 说明 protected CacheControl
WebContentInterceptor. lookupCacheControl(String urlPath)
Look up aCacheControl
instance for the given URL path.