public class MockServerRequest
extends java.lang.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 |
---|---|
java.util.Map<java.lang.String,java.lang.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,
java.util.Map<java.lang.String,java.lang.Object> hints) |
<S> reactor.core.publisher.Flux<S> |
bodyToFlux(java.lang.Class<? extends S> elementClass) |
<S> reactor.core.publisher.Flux<S> |
bodyToFlux(org.springframework.core.ParameterizedTypeReference<S> typeReference) |
<S> reactor.core.publisher.Mono<S> |
bodyToMono(java.lang.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<java.lang.String,org.springframework.http.HttpCookie> |
cookies() |
reactor.core.publisher.Mono<org.springframework.util.MultiValueMap<java.lang.String,java.lang.String>> |
formData() |
org.springframework.web.reactive.function.server.ServerRequest.Headers |
headers() |
org.springframework.http.HttpMethod |
method() |
java.lang.String |
methodName() |
reactor.core.publisher.Mono<org.springframework.util.MultiValueMap<java.lang.String,org.springframework.http.codec.multipart.Part>> |
multipartData() |
org.springframework.http.server.PathContainer |
pathContainer() |
java.util.Map<java.lang.String,java.lang.String> |
pathVariables() |
reactor.core.publisher.Mono<? extends java.security.Principal> |
principal() |
org.springframework.util.MultiValueMap<java.lang.String,java.lang.String> |
queryParams() |
reactor.core.publisher.Mono<org.springframework.web.server.WebSession> |
session() |
java.net.URI |
uri() |
org.springframework.web.util.UriBuilder |
uriBuilder() |
public org.springframework.http.HttpMethod method()
method
in interface org.springframework.web.reactive.function.server.ServerRequest
public java.lang.String methodName()
methodName
in interface org.springframework.web.reactive.function.server.ServerRequest
public java.net.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<java.lang.String,org.springframework.http.HttpCookie> cookies()
cookies
in interface org.springframework.web.reactive.function.server.ServerRequest
public <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.ServerRequest
public <S> S body(org.springframework.web.reactive.function.BodyExtractor<S,? super org.springframework.http.server.reactive.ServerHttpRequest> extractor, java.util.Map<java.lang.String,java.lang.Object> hints)
body
in interface org.springframework.web.reactive.function.server.ServerRequest
public <S> reactor.core.publisher.Mono<S> bodyToMono(java.lang.Class<? extends S> elementClass)
bodyToMono
in interface org.springframework.web.reactive.function.server.ServerRequest
public <S> reactor.core.publisher.Mono<S> bodyToMono(org.springframework.core.ParameterizedTypeReference<S> typeReference)
bodyToMono
in interface org.springframework.web.reactive.function.server.ServerRequest
public <S> reactor.core.publisher.Flux<S> bodyToFlux(java.lang.Class<? extends S> elementClass)
bodyToFlux
in interface org.springframework.web.reactive.function.server.ServerRequest
public <S> reactor.core.publisher.Flux<S> bodyToFlux(org.springframework.core.ParameterizedTypeReference<S> typeReference)
bodyToFlux
in interface org.springframework.web.reactive.function.server.ServerRequest
public java.util.Map<java.lang.String,java.lang.Object> attributes()
attributes
in interface org.springframework.web.reactive.function.server.ServerRequest
public org.springframework.util.MultiValueMap<java.lang.String,java.lang.String> queryParams()
queryParams
in interface org.springframework.web.reactive.function.server.ServerRequest
public java.util.Map<java.lang.String,java.lang.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 java.security.Principal> principal()
principal
in interface org.springframework.web.reactive.function.server.ServerRequest
public reactor.core.publisher.Mono<org.springframework.util.MultiValueMap<java.lang.String,java.lang.String>> formData()
formData
in interface org.springframework.web.reactive.function.server.ServerRequest
public reactor.core.publisher.Mono<org.springframework.util.MultiValueMap<java.lang.String,org.springframework.http.codec.multipart.Part>> multipartData()
multipartData
in interface org.springframework.web.reactive.function.server.ServerRequest
public static MockServerRequest.Builder builder()