public class RequestBodyMethodArgumentResolver extends AbstractMessageReaderArgumentResolver
@RequestBody by reading the
body of the request through a compatible HttpMessageReader.
An @RequestBody method argument is also validated if it is
annotated with @javax.validation.Valid or
Validated. Validation
failure results in an ServerWebInputException.
logger| Constructor and Description |
|---|
RequestBodyMethodArgumentResolver(List<HttpMessageReader<?>> readers,
ReactiveAdapterRegistry registry) |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Object> |
resolveArgument(MethodParameter param,
BindingContext bindingContext,
ServerWebExchange exchange)
Resolve the value for the method parameter.
|
boolean |
supportsParameter(MethodParameter parameter)
Whether this resolver supports the given method parameter.
|
getMessageReaders, readBody, readBodycheckAnnotatedParamNoReactiveWrapper, checkParameterType, checkParameterTypeNoReactiveWrapper, getAdapterRegistrypublic RequestBodyMethodArgumentResolver(List<HttpMessageReader<?>> readers, ReactiveAdapterRegistry registry)
public boolean supportsParameter(MethodParameter parameter)
HandlerMethodArgumentResolverparameter - the method parameterpublic reactor.core.publisher.Mono<Object> resolveArgument(MethodParameter param, BindingContext bindingContext, ServerWebExchange exchange)
HandlerMethodArgumentResolverparam - the method parameterbindingContext - the binding context to useexchange - the current exchangeMono for the argument value, possibly empty