Class CompositeServerHttpHeadersWriter
- java.lang.Object
-
- org.springframework.security.web.server.header.CompositeServerHttpHeadersWriter
-
- All Implemented Interfaces:
ServerHttpHeadersWriter
public class CompositeServerHttpHeadersWriter extends java.lang.Object implements ServerHttpHeadersWriter
Combines multipleServerHttpHeadersWriter
instances into a single instance.- Since:
- 5.0
-
-
Constructor Summary
Constructors Constructor Description CompositeServerHttpHeadersWriter(java.util.List<ServerHttpHeadersWriter> writers)
CompositeServerHttpHeadersWriter(ServerHttpHeadersWriter... writers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Mono<java.lang.Void>
writeHttpHeaders(org.springframework.web.server.ServerWebExchange exchange)
Write the headers to the response.
-
-
-
Constructor Detail
-
CompositeServerHttpHeadersWriter
public CompositeServerHttpHeadersWriter(ServerHttpHeadersWriter... writers)
-
CompositeServerHttpHeadersWriter
public CompositeServerHttpHeadersWriter(java.util.List<ServerHttpHeadersWriter> writers)
-
-
Method Detail
-
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)
.
-
-