public class DefaultServerResponse<T> extends Object implements org.springframework.web.reactive.function.server.ServerResponse
Modifier and Type | Class and Description |
---|---|
static class |
DefaultServerResponse.HandlerStrategiesResponseContext |
org.springframework.web.reactive.function.server.ServerResponse.BodyBuilder, org.springframework.web.reactive.function.server.ServerResponse.Context, org.springframework.web.reactive.function.server.ServerResponse.HeadersBuilder<B extends org.springframework.web.reactive.function.server.ServerResponse.HeadersBuilder<B>>
Constructor and Description |
---|
DefaultServerResponse(org.springframework.web.server.ServerWebExchange exchange,
org.springframework.web.reactive.function.BodyInserter<T,? super org.springframework.http.server.reactive.ServerHttpResponse> body,
Map<String,Object> hints) |
Modifier and Type | Method and Description |
---|---|
org.springframework.util.MultiValueMap<String,org.springframework.http.ResponseCookie> |
cookies() |
org.springframework.http.HttpHeaders |
headers() |
org.springframework.http.HttpStatus |
statusCode() |
reactor.core.publisher.Mono<Void> |
writeTo(org.springframework.web.server.ServerWebExchange exchange,
org.springframework.web.reactive.function.server.ServerResponse.Context context) |
public final org.springframework.http.HttpStatus statusCode()
statusCode
in interface org.springframework.web.reactive.function.server.ServerResponse
public final org.springframework.http.HttpHeaders headers()
headers
in interface org.springframework.web.reactive.function.server.ServerResponse
public org.springframework.util.MultiValueMap<String,org.springframework.http.ResponseCookie> cookies()
cookies
in interface org.springframework.web.reactive.function.server.ServerResponse
public final reactor.core.publisher.Mono<Void> writeTo(org.springframework.web.server.ServerWebExchange exchange, org.springframework.web.reactive.function.server.ServerResponse.Context context)
writeTo
in interface org.springframework.web.reactive.function.server.ServerResponse
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.