public class DefaultServerRequest extends Object implements org.springframework.web.reactive.function.server.ServerRequest
ServerRequest
implementation based on a ServerWebExchange
.Constructor and Description |
---|
DefaultServerRequest(org.springframework.web.server.ServerWebExchange exchange) |
DefaultServerRequest(org.springframework.web.server.ServerWebExchange exchange,
List<org.springframework.http.codec.HttpMessageReader<?>> messageReaders) |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
attributes() |
<T> T |
body(org.springframework.web.reactive.function.BodyExtractor<T,? super org.springframework.http.server.reactive.ServerHttpRequest> extractor) |
<T> T |
body(org.springframework.web.reactive.function.BodyExtractor<T,? super org.springframework.http.server.reactive.ServerHttpRequest> extractor,
Map<String,Object> hints) |
<T> reactor.core.publisher.Flux<T> |
bodyToFlux(Class<? extends T> elementClass) |
<T> reactor.core.publisher.Flux<T> |
bodyToFlux(org.springframework.core.ParameterizedTypeReference<T> typeReference) |
<T> reactor.core.publisher.Mono<T> |
bodyToMono(Class<? extends T> elementClass) |
<T> reactor.core.publisher.Mono<T> |
bodyToMono(org.springframework.core.ParameterizedTypeReference<T> typeReference) |
org.springframework.util.MultiValueMap<String,org.springframework.http.HttpCookie> |
cookies() |
reactor.core.publisher.Mono<org.springframework.util.MultiValueMap<String,String>> |
formData() |
org.springframework.web.reactive.function.server.ServerRequest.Headers |
headers() |
String |
methodName() |
reactor.core.publisher.Mono<org.springframework.util.MultiValueMap<String,org.springframework.http.codec.multipart.Part>> |
multipartData() |
org.springframework.http.server.PathContainer |
pathContainer() |
Map<String,String> |
pathVariables() |
reactor.core.publisher.Mono<? extends Principal> |
principal() |
org.springframework.util.MultiValueMap<String,String> |
queryParams() |
reactor.core.publisher.Mono<org.springframework.web.server.WebSession> |
session() |
String |
toString() |
URI |
uri() |
org.springframework.web.util.UriBuilder |
uriBuilder() |
public DefaultServerRequest(org.springframework.web.server.ServerWebExchange exchange)
public DefaultServerRequest(org.springframework.web.server.ServerWebExchange exchange, List<org.springframework.http.codec.HttpMessageReader<?>> messageReaders)
public String methodName()
methodName
in interface org.springframework.web.reactive.function.server.ServerRequest
public URI uri()
uri
in interface org.springframework.web.reactive.function.server.ServerRequest
public org.springframework.web.util.UriBuilder uriBuilder()
uriBuilder
in interface org.springframework.web.reactive.function.server.ServerRequest
public org.springframework.http.server.PathContainer pathContainer()
pathContainer
in interface org.springframework.web.reactive.function.server.ServerRequest
public org.springframework.web.reactive.function.server.ServerRequest.Headers headers()
headers
in interface org.springframework.web.reactive.function.server.ServerRequest
public org.springframework.util.MultiValueMap<String,org.springframework.http.HttpCookie> cookies()
cookies
in interface org.springframework.web.reactive.function.server.ServerRequest
public <T> T body(org.springframework.web.reactive.function.BodyExtractor<T,? super org.springframework.http.server.reactive.ServerHttpRequest> extractor)
body
in interface org.springframework.web.reactive.function.server.ServerRequest
public <T> T body(org.springframework.web.reactive.function.BodyExtractor<T,? super org.springframework.http.server.reactive.ServerHttpRequest> extractor, Map<String,Object> hints)
body
in interface org.springframework.web.reactive.function.server.ServerRequest
public <T> reactor.core.publisher.Mono<T> bodyToMono(Class<? extends T> elementClass)
bodyToMono
in interface org.springframework.web.reactive.function.server.ServerRequest
public <T> reactor.core.publisher.Mono<T> bodyToMono(org.springframework.core.ParameterizedTypeReference<T> typeReference)
bodyToMono
in interface org.springframework.web.reactive.function.server.ServerRequest
public <T> reactor.core.publisher.Flux<T> bodyToFlux(Class<? extends T> elementClass)
bodyToFlux
in interface org.springframework.web.reactive.function.server.ServerRequest
public <T> reactor.core.publisher.Flux<T> bodyToFlux(org.springframework.core.ParameterizedTypeReference<T> typeReference)
bodyToFlux
in interface org.springframework.web.reactive.function.server.ServerRequest
public Map<String,Object> attributes()
attributes
in interface org.springframework.web.reactive.function.server.ServerRequest
public org.springframework.util.MultiValueMap<String,String> queryParams()
queryParams
in interface org.springframework.web.reactive.function.server.ServerRequest
public Map<String,String> pathVariables()
pathVariables
in interface org.springframework.web.reactive.function.server.ServerRequest
public reactor.core.publisher.Mono<org.springframework.web.server.WebSession> session()
session
in interface org.springframework.web.reactive.function.server.ServerRequest
public reactor.core.publisher.Mono<? extends Principal> principal()
principal
in interface org.springframework.web.reactive.function.server.ServerRequest
public reactor.core.publisher.Mono<org.springframework.util.MultiValueMap<String,String>> formData()
formData
in interface org.springframework.web.reactive.function.server.ServerRequest
public reactor.core.publisher.Mono<org.springframework.util.MultiValueMap<String,org.springframework.http.codec.multipart.Part>> multipartData()
multipartData
in interface org.springframework.web.reactive.function.server.ServerRequest
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.