Class ReferrerPolicyServerHttpHeadersWriter
java.lang.Object
org.springframework.security.web.server.header.ReferrerPolicyServerHttpHeadersWriter
- All Implemented Interfaces:
 ServerHttpHeadersWriter
public final class ReferrerPolicyServerHttpHeadersWriter
extends Object
implements ServerHttpHeadersWriter
Writes the 
Referrer-Policy response header.- Since:
 - 5.1
 
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum - 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidSet the policy to be used in the response header.reactor.core.publisher.Mono<Void>writeHttpHeaders(org.springframework.web.server.ServerWebExchange exchange) Write the headers to the response. 
- 
Field Details
- 
REFERRER_POLICY
- See Also:
 
 
 - 
 - 
Constructor Details
- 
ReferrerPolicyServerHttpHeadersWriter
public ReferrerPolicyServerHttpHeadersWriter() 
 - 
 - 
Method Details
- 
writeHttpHeaders
public 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 interfaceServerHttpHeadersWriter- Returns:
 - A Mono which is returned to the 
Supplierof theReactiveHttpOutputMessage.beforeCommit(Supplier). 
 - 
setPolicy
Set the policy to be used in the response header.- Parameters:
 policy- the policy- Throws:
 IllegalArgumentException- if policy isnull
 
 -