spring-framework / org.springframework.mock.web.reactive.function.server / MockServerRequest

MockServerRequest

open class MockServerRequest : ServerRequest

Mock implementation of ServerRequest.

Author
Arjen Poutsma

Since
5.0

Functions

attributes

open fun attributes(): MutableMap<String, Any>

body

open fun <S : Any> body(extractor: BodyExtractor<S, in ServerHttpRequest>): S
open fun <S : Any> body(extractor: BodyExtractor<S, in ServerHttpRequest>, hints: MutableMap<String, Any>): S

bodyToFlux

open fun <S : Any> bodyToFlux(elementClass: Class<out S>): Flux<S>
open fun <S : Any> bodyToFlux(typeReference: ParameterizedTypeReference<S>): Flux<S>

bodyToMono

open fun <S : Any> bodyToMono(elementClass: Class<out S>): Mono<S>
open fun <S : Any> bodyToMono(typeReference: ParameterizedTypeReference<S>): Mono<S>

builder

open static fun builder(): Builder

cookies

open fun cookies(): MultiValueMap<String, HttpCookie>

headers

open fun headers(): Headers

method

open fun method(): HttpMethod

methodName

open fun methodName(): String

pathContainer

open fun pathContainer(): PathContainer

pathVariables

open fun pathVariables(): MutableMap<String, String>

principal

open fun principal(): Mono<out Principal>

queryParams

open fun queryParams(): MultiValueMap<String, String>

session

open fun session(): Mono<WebSession>

uri

open fun uri(): URI

uriBuilder

open fun uriBuilder(): UriBuilder