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 via
WebTestClient . |
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.
|
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.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.
|
Modifier and Type | Method and 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.
|
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.staleIfError(long staleIfError,
TimeUnit unit)
Add a "stale-if-error" directive.
|
CacheControl |
CacheControl.staleWhileRevalidate(long staleWhileRevalidate,
TimeUnit unit)
Add a "stale-while-revalidate" directive.
|
Modifier and Type | Method and Description |
---|---|
B |
ResponseEntity.HeadersBuilder.cacheControl(CacheControl cacheControl)
Set the caching directives for the resource, as specified by the HTTP 1.1
Cache-Control header. |
void |
HttpHeaders.setCacheControl(CacheControl cacheControl)
Set a configured
CacheControl instance as the
new value of the Cache-Control header. |
Modifier and Type | Method and Description |
---|---|
WebTestClient.ResponseSpec |
HeaderAssertions.cacheControl(CacheControl cacheControl)
Expect a "Cache-Control" header with the given value.
|
Modifier and Type | Method and Description |
---|---|
ResourceHandlerRegistration |
ResourceHandlerRegistration.setCacheControl(CacheControl cacheControl)
Specify the
CacheControl which should be used
by the resource handler. |
Modifier and Type | Method and Description |
---|---|
EntityResponse.Builder<T> |
EntityResponse.Builder.cacheControl(CacheControl cacheControl)
Set the caching directives for the resource, as specified by the HTTP 1.1
Cache-Control header. |
B |
ServerResponse.HeadersBuilder.cacheControl(CacheControl cacheControl)
Set the caching directives for the resource, as specified by the HTTP 1.1
Cache-Control header. |
Modifier and Type | Method and Description |
---|---|
CacheControl |
ResourceWebHandler.getCacheControl()
Return the
CacheControl instance to build
the Cache-Control HTTP response header. |
Modifier and Type | Method and Description |
---|---|
void |
ResourceWebHandler.setCacheControl(CacheControl cacheControl)
Set the
CacheControl instance to build
the Cache-Control HTTP response header. |
Modifier and Type | Method and Description |
---|---|
ResourceHandlerRegistration |
ResourceHandlerRegistration.setCacheControl(CacheControl cacheControl)
Specify the
CacheControl which should be used
by the resource handler. |
Modifier and Type | Method and Description |
---|---|
protected CacheControl |
WebContentInterceptor.lookupCacheControl(String urlPath)
Look up a
CacheControl instance for the given URL path. |
Modifier and Type | Method and Description |
---|---|
void |
WebContentInterceptor.addCacheMapping(CacheControl cacheControl,
String... paths)
Map specific URL paths to a specific
CacheControl . |
Modifier and Type | Method and Description |
---|---|
CacheControl |
WebContentGenerator.getCacheControl()
Get the
CacheControl instance
that builds the Cache-Control HTTP response header. |
Modifier and Type | Method and 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 the
CacheControl instance to build
the Cache-Control HTTP response header. |