public final class ReferrerPolicyServerHttpHeadersWriter extends java.lang.Object implements ServerHttpHeadersWriter
Referrer-Policy response header.| Modifier and Type | Class and Description |
|---|---|
static class |
ReferrerPolicyServerHttpHeadersWriter.ReferrerPolicy |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
REFERRER_POLICY |
| Constructor and Description |
|---|
ReferrerPolicyServerHttpHeadersWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
setPolicy(ReferrerPolicyServerHttpHeadersWriter.ReferrerPolicy policy)
Set the policy to be used in the response header.
|
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 REFERRER_POLICY
public ReferrerPolicyServerHttpHeadersWriter()
public reactor.core.publisher.Mono<java.lang.Void> writeHttpHeaders(org.springframework.web.server.ServerWebExchange exchange)
ServerHttpHeadersWriterwriteHttpHeaders in interface ServerHttpHeadersWriterSupplier of the
ReactiveHttpOutputMessage.beforeCommit(Supplier).public void setPolicy(ReferrerPolicyServerHttpHeadersWriter.ReferrerPolicy policy)
policy - the policyjava.lang.IllegalArgumentException - if policy is null