Class CrossOriginEmbedderPolicyServerHttpHeadersWriter
- java.lang.Object
-
- org.springframework.security.web.server.header.CrossOriginEmbedderPolicyServerHttpHeadersWriter
-
- All Implemented Interfaces:
ServerHttpHeadersWriter
public final class CrossOriginEmbedderPolicyServerHttpHeadersWriter extends java.lang.Object implements ServerHttpHeadersWriter
Inserts Cross-Origin-Embedder-Policy headers.- Since:
- 5.7
- See Also:
- Cross-Origin-Embedder-Policy
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CrossOriginEmbedderPolicyServerHttpHeadersWriter.CrossOriginEmbedderPolicy
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
EMBEDDER_POLICY
-
Constructor Summary
Constructors Constructor Description CrossOriginEmbedderPolicyServerHttpHeadersWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setPolicy(CrossOriginEmbedderPolicyServerHttpHeadersWriter.CrossOriginEmbedderPolicy embedderPolicy)
Sets theCrossOriginEmbedderPolicyServerHttpHeadersWriter.CrossOriginEmbedderPolicy
value to be used in theCross-Origin-Embedder-Policy
headerreactor.core.publisher.Mono<java.lang.Void>
writeHttpHeaders(org.springframework.web.server.ServerWebExchange exchange)
Write the headers to the response.
-
-
-
Field Detail
-
EMBEDDER_POLICY
public static final java.lang.String EMBEDDER_POLICY
- See Also:
- Constant Field Values
-
-
Method Detail
-
setPolicy
public void setPolicy(CrossOriginEmbedderPolicyServerHttpHeadersWriter.CrossOriginEmbedderPolicy embedderPolicy)
Sets theCrossOriginEmbedderPolicyServerHttpHeadersWriter.CrossOriginEmbedderPolicy
value to be used in theCross-Origin-Embedder-Policy
header- Parameters:
embedderPolicy
- theCrossOriginEmbedderPolicyServerHttpHeadersWriter.CrossOriginEmbedderPolicy
to use
-
writeHttpHeaders
public reactor.core.publisher.Mono<java.lang.Void> writeHttpHeaders(org.springframework.web.server.ServerWebExchange exchange)
Description copied from interface:ServerHttpHeadersWriter
Write the headers to the response.- Specified by:
writeHttpHeaders
in interfaceServerHttpHeadersWriter
- Returns:
- A Mono which is returned to the
Supplier
of theReactiveHttpOutputMessage.beforeCommit(Supplier)
.
-
-