public class RouterFunctionSpec extends Object
| Modifier and Type | Method and Description |
|---|---|
WebTestClient |
build()
Shortcut to build the test client.
|
WebTestClient.Builder |
configureClient()
Proceed to configure and build the test client.
|
<T extends B> |
exchangeMutator(UnaryOperator<org.springframework.web.server.ServerWebExchange> mutator)
Configure a transformation function on
ServerWebExchange to
be applied at the start of server-side, request processing. |
protected org.springframework.web.server.adapter.WebHttpHandlerBuilder |
initHttpHandlerBuilder()
Sub-classes to create the
WebHttpHandlerBuilder to use. |
<T extends B> |
webFilter(org.springframework.web.server.WebFilter... filter)
Configure
WebFilter's for server request processing. |
protected org.springframework.web.server.adapter.WebHttpHandlerBuilder initHttpHandlerBuilder()
WebHttpHandlerBuilder to use.public <T extends B> T exchangeMutator(UnaryOperator<org.springframework.web.server.ServerWebExchange> mutator)
WebTestClient.MockServerSpecServerWebExchange to
be applied at the start of server-side, request processing.exchangeMutator in interface WebTestClient.MockServerSpec<B extends WebTestClient.MockServerSpec<B>>mutator - the transforming function.ServerWebExchange.mutate()public <T extends B> T webFilter(org.springframework.web.server.WebFilter... filter)
WebTestClient.MockServerSpecWebFilter's for server request processing.webFilter in interface WebTestClient.MockServerSpec<B extends WebTestClient.MockServerSpec<B>>filter - one or more filterspublic WebTestClient.Builder configureClient()
WebTestClient.MockServerSpecconfigureClient in interface WebTestClient.MockServerSpec<B extends WebTestClient.MockServerSpec<B>>public WebTestClient build()
WebTestClient.MockServerSpecbuild in interface WebTestClient.MockServerSpec<B extends WebTestClient.MockServerSpec<B>>