Class StaticServerHttpHeadersWriter
- java.lang.Object
-
- org.springframework.security.web.server.header.StaticServerHttpHeadersWriter
-
- All Implemented Interfaces:
ServerHttpHeadersWriter
public class StaticServerHttpHeadersWriter extends java.lang.Object implements ServerHttpHeadersWriter
Allows specifyingHttpHeaders
that should be written to the response.- Since:
- 5.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StaticServerHttpHeadersWriter.Builder
-
Constructor Summary
Constructors Constructor Description StaticServerHttpHeadersWriter(org.springframework.http.HttpHeaders headersToAdd)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StaticServerHttpHeadersWriter.Builder
builder()
reactor.core.publisher.Mono<java.lang.Void>
writeHttpHeaders(org.springframework.web.server.ServerWebExchange exchange)
Write the headers to the response.
-
-
-
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)
.
-
builder
public static StaticServerHttpHeadersWriter.Builder builder()
-
-