Class ClearSiteDataServerHttpHeadersWriter
java.lang.Object
org.springframework.security.web.server.header.ClearSiteDataServerHttpHeadersWriter
- All Implemented Interfaces:
- ServerHttpHeadersWriter
public final class ClearSiteDataServerHttpHeadersWriter
extends Object
implements ServerHttpHeadersWriter
 Writes the Clear-Site-Data response header when the request is secure.
 
For further details please consult W3C Documentation.
- Since:
- 5.2
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumRepresents the directive values expected by theClearSiteDataServerHttpHeadersWriter
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionConstructs a new instance using the given directives.
- 
Method SummaryModifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>writeHttpHeaders(org.springframework.web.server.ServerWebExchange exchange) Write the headers to the response.
- 
Field Details- 
CLEAR_SITE_DATA_HEADER- See Also:
 
 
- 
- 
Constructor Details- 
ClearSiteDataServerHttpHeadersWriterpublic ClearSiteDataServerHttpHeadersWriter(ClearSiteDataServerHttpHeadersWriter.Directive... directives) Constructs a new instance using the given directives. - Parameters:
- directives- directives that will be written as the header value
- Throws:
- IllegalArgumentException- if the argument is null or empty
 
 
- 
- 
Method Details- 
writeHttpHeaderspublic reactor.core.publisher.Mono<Void> writeHttpHeaders(org.springframework.web.server.ServerWebExchange exchange) Description copied from interface:ServerHttpHeadersWriterWrite the headers to the response.- Specified by:
- writeHttpHeadersin interface- ServerHttpHeadersWriter
- Returns:
- A Mono which is returned to the Supplierof theReactiveHttpOutputMessage.beforeCommit(Supplier).
 
 
-