Class CacheControlServerHttpHeadersWriter
- java.lang.Object
-
- org.springframework.security.web.server.header.CacheControlServerHttpHeadersWriter
-
- All Implemented Interfaces:
ServerHttpHeadersWriter
public class CacheControlServerHttpHeadersWriter extends java.lang.Object implements ServerHttpHeadersWriter
Writes cache control related headers.Cache-Control: no-cache, no-store, max-age=0, must-revalidate Pragma: no-cache Expires: 0
- Since:
- 5.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CACHE_CONTRTOL_VALUE
The value for cache control valuestatic java.lang.String
EXPIRES_VALUE
The value for expires valuestatic java.lang.String
PRAGMA_VALUE
The value for pragma value
-
Constructor Summary
Constructors Constructor Description CacheControlServerHttpHeadersWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Mono<java.lang.Void>
writeHttpHeaders(org.springframework.web.server.ServerWebExchange exchange)
Write the headers to the response.
-
-
-
Field Detail
-
EXPIRES_VALUE
public static final java.lang.String EXPIRES_VALUE
The value for expires value- See Also:
- Constant Field Values
-
PRAGMA_VALUE
public static final java.lang.String PRAGMA_VALUE
The value for pragma value- See Also:
- Constant Field Values
-
CACHE_CONTRTOL_VALUE
public static final java.lang.String CACHE_CONTRTOL_VALUE
The value for cache control value- See Also:
- Constant Field Values
-
-
Method Detail
-
writeHttpHeaders
public reactor.core.publisher.Mono<java.lang.Void> writeHttpHeaders(org.springframework.web.server.ServerWebExchange exchange)
Description copied from interface:ServerHttpHeadersWriter
Write the headers to the response.- Specified by:
writeHttpHeaders
in interfaceServerHttpHeadersWriter
- Returns:
- A Mono which is returned to the
Supplier
of theReactiveHttpOutputMessage.beforeCommit(Supplier)
.
-
-