ServerRequest.create(ServerWebExchange, List) combined with
MockServerWebExchange.@Deprecated public final class MockServerRequest extends Object implements org.springframework.web.reactive.function.server.ServerRequest
ServerRequest.| Modifier and Type | Class and Description |
|---|---|
static interface |
MockServerRequest.Builder
Deprecated.
Builder for
MockServerRequest. |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
attributes()
Deprecated.
|
<S> S |
body(org.springframework.web.reactive.function.BodyExtractor<S,? super org.springframework.http.server.reactive.ServerHttpRequest> extractor)
Deprecated.
|
<S> S |
body(org.springframework.web.reactive.function.BodyExtractor<S,? super org.springframework.http.server.reactive.ServerHttpRequest> extractor,
Map<String,Object> hints)
Deprecated.
|
<S> reactor.core.publisher.Flux<S> |
bodyToFlux(Class<? extends S> elementClass)
Deprecated.
|
<S> reactor.core.publisher.Flux<S> |
bodyToFlux(org.springframework.core.ParameterizedTypeReference<S> typeReference)
Deprecated.
|
<S> reactor.core.publisher.Mono<S> |
bodyToMono(Class<? extends S> elementClass)
Deprecated.
|
<S> reactor.core.publisher.Mono<S> |
bodyToMono(org.springframework.core.ParameterizedTypeReference<S> typeReference)
Deprecated.
|
static MockServerRequest.Builder |
builder()
Deprecated.
|
org.springframework.util.MultiValueMap<String,org.springframework.http.HttpCookie> |
cookies()
Deprecated.
|
org.springframework.web.server.ServerWebExchange |
exchange()
Deprecated.
|
reactor.core.publisher.Mono<org.springframework.util.MultiValueMap<String,String>> |
formData()
Deprecated.
|
org.springframework.web.reactive.function.server.ServerRequest.Headers |
headers()
Deprecated.
|
Optional<InetSocketAddress> |
localAddress()
Deprecated.
|
List<org.springframework.http.codec.HttpMessageReader<?>> |
messageReaders()
Deprecated.
|
org.springframework.http.HttpMethod |
method()
Deprecated.
|
String |
methodName()
Deprecated.
|
reactor.core.publisher.Mono<org.springframework.util.MultiValueMap<String,org.springframework.http.codec.multipart.Part>> |
multipartData()
Deprecated.
|
org.springframework.http.server.PathContainer |
pathContainer()
Deprecated.
|
Map<String,String> |
pathVariables()
Deprecated.
|
reactor.core.publisher.Mono<? extends Principal> |
principal()
Deprecated.
|
org.springframework.util.MultiValueMap<String,String> |
queryParams()
Deprecated.
|
Optional<InetSocketAddress> |
remoteAddress()
Deprecated.
|
reactor.core.publisher.Mono<org.springframework.web.server.WebSession> |
session()
Deprecated.
|
URI |
uri()
Deprecated.
|
org.springframework.web.util.UriBuilder |
uriBuilder()
Deprecated.
|
public org.springframework.http.HttpMethod method()
method in interface org.springframework.web.reactive.function.server.ServerRequestpublic String methodName()
methodName in interface org.springframework.web.reactive.function.server.ServerRequestpublic URI uri()
uri in interface org.springframework.web.reactive.function.server.ServerRequestpublic org.springframework.web.util.UriBuilder uriBuilder()
uriBuilder in interface org.springframework.web.reactive.function.server.ServerRequestpublic org.springframework.http.server.PathContainer pathContainer()
pathContainer in interface org.springframework.web.reactive.function.server.ServerRequestpublic org.springframework.web.reactive.function.server.ServerRequest.Headers headers()
headers in interface org.springframework.web.reactive.function.server.ServerRequestpublic org.springframework.util.MultiValueMap<String,org.springframework.http.HttpCookie> cookies()
cookies in interface org.springframework.web.reactive.function.server.ServerRequestpublic Optional<InetSocketAddress> remoteAddress()
remoteAddress in interface org.springframework.web.reactive.function.server.ServerRequestpublic Optional<InetSocketAddress> localAddress()
localAddress in interface org.springframework.web.reactive.function.server.ServerRequestpublic List<org.springframework.http.codec.HttpMessageReader<?>> messageReaders()
messageReaders in interface org.springframework.web.reactive.function.server.ServerRequestpublic <S> S body(org.springframework.web.reactive.function.BodyExtractor<S,? super org.springframework.http.server.reactive.ServerHttpRequest> extractor)
body in interface org.springframework.web.reactive.function.server.ServerRequestpublic <S> S body(org.springframework.web.reactive.function.BodyExtractor<S,? super org.springframework.http.server.reactive.ServerHttpRequest> extractor,
Map<String,Object> hints)
body in interface org.springframework.web.reactive.function.server.ServerRequestpublic <S> reactor.core.publisher.Mono<S> bodyToMono(Class<? extends S> elementClass)
bodyToMono in interface org.springframework.web.reactive.function.server.ServerRequestpublic <S> reactor.core.publisher.Mono<S> bodyToMono(org.springframework.core.ParameterizedTypeReference<S> typeReference)
bodyToMono in interface org.springframework.web.reactive.function.server.ServerRequestpublic <S> reactor.core.publisher.Flux<S> bodyToFlux(Class<? extends S> elementClass)
bodyToFlux in interface org.springframework.web.reactive.function.server.ServerRequestpublic <S> reactor.core.publisher.Flux<S> bodyToFlux(org.springframework.core.ParameterizedTypeReference<S> typeReference)
bodyToFlux in interface org.springframework.web.reactive.function.server.ServerRequestpublic Map<String,Object> attributes()
attributes in interface org.springframework.web.reactive.function.server.ServerRequestpublic org.springframework.util.MultiValueMap<String,String> queryParams()
queryParams in interface org.springframework.web.reactive.function.server.ServerRequestpublic Map<String,String> pathVariables()
pathVariables in interface org.springframework.web.reactive.function.server.ServerRequestpublic reactor.core.publisher.Mono<org.springframework.web.server.WebSession> session()
session in interface org.springframework.web.reactive.function.server.ServerRequestpublic reactor.core.publisher.Mono<? extends Principal> principal()
principal in interface org.springframework.web.reactive.function.server.ServerRequestpublic reactor.core.publisher.Mono<org.springframework.util.MultiValueMap<String,String>> formData()
formData in interface org.springframework.web.reactive.function.server.ServerRequestpublic 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.ServerRequestpublic org.springframework.web.server.ServerWebExchange exchange()
exchange in interface org.springframework.web.reactive.function.server.ServerRequestpublic static MockServerRequest.Builder builder()