public final class ClearSiteDataServerHttpHeadersWriter extends java.lang.Object implements ServerHttpHeadersWriter
Writes the Clear-Site-Data
response header when the request is secure.
For further details pleaes consult W3C Documentation.
Modifier and Type | Class and Description |
---|---|
static class |
ClearSiteDataServerHttpHeadersWriter.Directive
Represents the directive values expected by the
ClearSiteDataServerHttpHeadersWriter |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLEAR_SITE_DATA_HEADER |
Constructor and Description |
---|
ClearSiteDataServerHttpHeadersWriter(ClearSiteDataServerHttpHeadersWriter.Directive... directives)
Constructs a new instance using the given directives.
|
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<java.lang.Void> |
writeHttpHeaders(org.springframework.web.server.ServerWebExchange exchange)
Write the headers to the response.
|
public static final java.lang.String CLEAR_SITE_DATA_HEADER
public ClearSiteDataServerHttpHeadersWriter(ClearSiteDataServerHttpHeadersWriter.Directive... directives)
Constructs a new instance using the given directives.
directives
- directives that will be written as the header valuejava.lang.IllegalArgumentException
- if the argument is null or emptypublic reactor.core.publisher.Mono<java.lang.Void> writeHttpHeaders(org.springframework.web.server.ServerWebExchange exchange)
ServerHttpHeadersWriter
writeHttpHeaders
in interface ServerHttpHeadersWriter
Supplier
of the
ReactiveHttpOutputMessage.beforeCommit(Supplier)
.