Polishing
This commit is contained in:
parent
fac1f236c3
commit
b61c055e43
|
@ -81,12 +81,16 @@ public class WebExchangeDataBinder extends WebDataBinder {
|
||||||
return extractValuesToBind(exchange);
|
return extractValuesToBind(exchange);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Combine query params and form data for multipart form data from the body
|
* Combine query params and form data for multipart form data from the body
|
||||||
* of the request into a {@code Map<String, Object>} of values to use for
|
* of the request into a {@code Map<String, Object>} of values to use for
|
||||||
* data binding purposes.
|
* data binding purposes.
|
||||||
* @param exchange the current exchange
|
* @param exchange the current exchange
|
||||||
* @return a {@code Mono} with the values to bind
|
* @return a {@code Mono} with the values to bind
|
||||||
|
* @see org.springframework.http.server.reactive.ServerHttpRequest#getQueryParams()
|
||||||
|
* @see ServerWebExchange#getFormData()
|
||||||
|
* @see ServerWebExchange#getMultipartData()
|
||||||
*/
|
*/
|
||||||
public static Mono<Map<String, Object>> extractValuesToBind(ServerWebExchange exchange) {
|
public static Mono<Map<String, Object>> extractValuesToBind(ServerWebExchange exchange) {
|
||||||
MultiValueMap<String, String> queryParams = exchange.getRequest().getQueryParams();
|
MultiValueMap<String, String> queryParams = exchange.getRequest().getQueryParams();
|
||||||
|
|
|
@ -30,7 +30,6 @@ import org.springframework.http.server.reactive.ServerHttpResponse;
|
||||||
import org.springframework.lang.Nullable;
|
import org.springframework.lang.Nullable;
|
||||||
import org.springframework.util.Assert;
|
import org.springframework.util.Assert;
|
||||||
import org.springframework.util.MultiValueMap;
|
import org.springframework.util.MultiValueMap;
|
||||||
import org.springframework.web.server.i18n.LocaleContextResolver;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Contract for an HTTP request-response interaction. Provides access to the HTTP
|
* Contract for an HTTP request-response interaction. Provides access to the HTTP
|
||||||
|
@ -131,7 +130,8 @@ public interface ServerWebExchange {
|
||||||
Mono<MultiValueMap<String, Part>> getMultipartData();
|
Mono<MultiValueMap<String, Part>> getMultipartData();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the {@link LocaleContext} using the configured {@link LocaleContextResolver}.
|
* Return the {@link LocaleContext} using the configured
|
||||||
|
* {@link org.springframework.web.server.i18n.LocaleContextResolver}.
|
||||||
*/
|
*/
|
||||||
LocaleContext getLocaleContext();
|
LocaleContext getLocaleContext();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue