public final class PermissionsPolicyServerHttpHeadersWriter extends java.lang.Object implements ServerHttpHeadersWriter
Permissions-Policy
response header with configured policy
directives.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PERMISSIONS_POLICY |
Constructor and Description |
---|
PermissionsPolicyServerHttpHeadersWriter() |
Modifier and Type | Method and Description |
---|---|
void |
setPolicy(java.lang.String 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 PERMISSIONS_POLICY
public PermissionsPolicyServerHttpHeadersWriter()
public 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)
.public void setPolicy(java.lang.String policy)
policy
- the policyjava.lang.IllegalArgumentException
- if policy is null