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