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 specifyingHttpHeadersthat should be written to the response.- Since:
- 5.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStaticServerHttpHeadersWriter.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.Builderbuilder()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:ServerHttpHeadersWriterWrite the headers to the response.- Specified by:
writeHttpHeadersin interfaceServerHttpHeadersWriter- Returns:
- A Mono which is returned to the
Supplierof theReactiveHttpOutputMessage.beforeCommit(Supplier).
-
builder
public static StaticServerHttpHeadersWriter.Builder builder()
-
-