public class MockServerWebExchange extends ServerWebExchangeDecorator
ServerWebExchange for use in tests.
Effectively a wrapper around DefaultServerWebExchange plugged in
with MockServerHttpRequest and MockServerHttpResponse.
Typically used via MockServerHttpRequest.toExchange().
ServerWebExchange.Builder| Constructor and Description |
|---|
MockServerWebExchange(MockServerHttpRequest request) |
| Modifier and Type | Method and Description |
|---|---|
MockServerHttpResponse |
getResponse()
Return the current HTTP response.
|
addUrlTransformer, checkNotModified, checkNotModified, checkNotModified, getAttributes, getDelegate, getFormData, getLocaleContext, getMultipartData, getPrincipal, getRequest, getSession, isNotModified, toString, transformUrlclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAttribute, getAttributeOrDefault, getRequiredAttribute, mutatepublic MockServerWebExchange(MockServerHttpRequest request)
public MockServerHttpResponse getResponse()
ServerWebExchangegetResponse in interface ServerWebExchangegetResponse in class ServerWebExchangeDecorator