public static interface MockServerRequest.Builder
MockServerRequest
.MockServerRequest.Builder method(HttpMethod method)
MockServerRequest.Builder uri(URI uri)
MockServerRequest.Builder contextPath(String contextPath)
MockServerRequest.Builder header(String key, String value)
MockServerRequest.Builder headers(HttpHeaders headers)
MockServerRequest.Builder cookie(HttpCookie... cookies)
MockServerRequest.Builder cookies(MultiValueMap<String,HttpCookie> cookies)
MockServerRequest.Builder attribute(String name, Object value)
MockServerRequest.Builder attributes(Map<String,Object> attributes)
MockServerRequest.Builder queryParam(String key, String value)
MockServerRequest.Builder queryParams(MultiValueMap<String,String> queryParams)
MockServerRequest.Builder pathVariable(String key, String value)
MockServerRequest.Builder pathVariables(Map<String,String> pathVariables)
MockServerRequest.Builder session(WebSession session)
@Deprecated MockServerRequest.Builder session(Principal principal)
principal(Principal)
Principal
.MockServerRequest.Builder principal(Principal principal)
MockServerRequest.Builder remoteAddress(InetSocketAddress remoteAddress)
MockServerRequest.Builder messageReaders(List<HttpMessageReader<?>> messageReaders)
MockServerRequest.Builder exchange(ServerWebExchange exchange)
MockServerRequest body(Object body)
MockServerRequest build()