Generated by
JDiff

Class org.springframework.mock.http.server.reactive.MockServerHttpRequest

The superclass changed from java.lang.Object to org.springframework.http.server.reactive.AbstractServerHttpRequest.
Removed interface org.springframework.http.server.reactive.ServerHttpRequest.

Removed Constructors
MockServerHttpRequest(HttpMethod, String) Convenience alternative to .MockServerHttpRequest(HttpMethod, URI) that accepts a String URL.
MockServerHttpRequest(HttpMethod, URI) Create a new instance with the given HTTP method and URL.
MockServerHttpRequest() Create a new instance where the HTTP method and/or URL can be set later via .setHttpMethod(HttpMethod) and .setUri(URI).
 

Removed Methods
MockServerHttpRequest addHeader(String, String)  
MockServerHttpRequest setBody(<any>)  
MockServerHttpRequest setBody(String, Charset)  
void setContextPath(String)  
MockServerHttpRequest setHeader(String, String)  
void setHttpMethod(HttpMethod)  
MockServerHttpRequest setUri(String)  
MockServerHttpRequest setUri(URI)  
 

Added Methods
BaseBuilder<?> delete(String, Object[]) Create an HTTP DELETE builder with the given url.
BaseBuilder<?> get(String, Object[]) Create an HTTP GET builder with the given url.
Optional<InetSocketAddress> getRemoteAddress()  
BaseBuilder<?> head(String, Object[]) Create an HTTP HEAD builder with the given url.
(MultiValueMap<String, HttpCookie>initCookies()  
BodyBuilder method(HttpMethod, String, Object[]) Alternative to .method(HttpMethod, URI) that accepts a URI template.
BodyBuilder method(HttpMethod, URI) Create a builder with the given HTTP method and a URI.
BaseBuilder<?> options(String, Object[]) Creates an HTTP OPTIONS builder with the given url.
BodyBuilder patch(String, Object[]) Create an HTTP PATCH builder with the given url.
BodyBuilder post(String, Object[]) Create an HTTP POST builder with the given url.
BodyBuilder put(String, Object[]) Create an HTTP PUT builder with the given url.
 

Changed Methods
MultiValueMap<String, HttpCookie> getCookies() Method was locally defined, but is now inherited from AbstractServerHttpRequest.  
HttpHeaders getHeaders() Method was locally defined, but is now inherited from AbstractServerHttpRequest.  
MultiValueMap<String, String> getQueryParams() Method was locally defined, but is now inherited from AbstractServerHttpRequest.  
URI getURI() Method was locally defined, but is now inherited from AbstractServerHttpRequest.