public class MockServerWebExchange
extends org.springframework.web.server.ServerWebExchangeDecorator
ServerWebExchange for use in tests.
Effectively a wrapper around DefaultServerWebExchange plugged in
with MockServerHttpRequest and MockServerHttpResponse.
Typically used via MockServerHttpRequest.toExchange().
| Constructor and Description |
|---|
MockServerWebExchange(MockServerHttpRequest request) |
| Modifier and Type | Method and Description |
|---|---|
MockServerHttpResponse |
getResponse() |
addUrlTransformer, checkNotModified, checkNotModified, checkNotModified, getAttributes, getDelegate, getFormData, getLocaleContext, getMultipartData, getPrincipal, getRequest, getSession, isNotModified, toString, transformUrlpublic MockServerWebExchange(MockServerHttpRequest request)
public MockServerHttpResponse getResponse()
getResponse in interface org.springframework.web.server.ServerWebExchangegetResponse in class org.springframework.web.server.ServerWebExchangeDecorator