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, transformUrl
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAttribute, getAttributeOrDefault, getRequiredAttribute, mutate
public MockServerWebExchange(MockServerHttpRequest request)
public MockServerHttpResponse getResponse()
ServerWebExchange
getResponse
in interface ServerWebExchange
getResponse
in class ServerWebExchangeDecorator