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<org.springframework.http.codec.HttpMessageReader<?>> readers,
org.springframework.core.ReactiveAdapterRegistry registry) |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Object> |
resolveArgument(org.springframework.core.MethodParameter param,
BindingContext bindingContext,
org.springframework.web.server.ServerWebExchange exchange)
Resolve the value for the method parameter.
|
boolean |
supportsParameter(org.springframework.core.MethodParameter parameter)
Whether this resolver supports the given method parameter.
|
getMessageReaders, readBody, readBodycheckAnnotatedParamNoReactiveWrapper, checkParameterType, checkParameterTypeNoReactiveWrapper, getAdapterRegistrypublic RequestBodyMethodArgumentResolver(List<org.springframework.http.codec.HttpMessageReader<?>> readers, org.springframework.core.ReactiveAdapterRegistry registry)
public boolean supportsParameter(org.springframework.core.MethodParameter parameter)
HandlerMethodArgumentResolverparameter - the method parameterpublic reactor.core.publisher.Mono<Object> resolveArgument(org.springframework.core.MethodParameter param, BindingContext bindingContext, org.springframework.web.server.ServerWebExchange exchange)
HandlerMethodArgumentResolverparam - the method parameterbindingContext - the binding context to useexchange - the current exchangeMono for the argument value, possibly empty