HttpMessageReader.
Applies validation if the method argument is annotated with any
annotations that trigger validation. Validation failure results in a
ServerWebInputException.
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private static final Set |
| Access | Constructor and Description |
|---|---|
| protected | AbstractMessageReaderArgumentResolver(List<HttpMessageReader<?>>
the readers to convert from the request body readers)Constructor with |
| protected | AbstractMessageReaderArgumentResolver(List<HttpMessageReader<?>>
readers to convert from the request body messageReaders, ReactiveAdapterRegistry for adapting to other reactive types from Flux and Mono adapterRegistry)Constructor that also accepts a |
| Modifier and Type | Method and Description |
|---|---|
| private Object[] | extractValidationHints(MethodParameter parameter)
Check if the given MethodParameter requires validation and if so return a (possibly empty) Object[] with validation hints. |
| public List | |
| private List | |
| private ServerWebInputException | |
| private Throwable | |
| protected Mono | Returns: the bodythe bodyParameter, boolean MethodParameter to readtrue if the body is required isBodyRequired, BindingContext the binding context to use bindingContext, ServerWebExchange the current exchange exchange)Read the body from a method argument with |
| protected Mono | Returns: a Mono with the value to use for the method argumentrepresents the element type for the body bodyParam, MethodParameter the actual method argument type; possibly different
from actualParam, boolean bodyParam, e.g. for an HttpEntity argumenttrue if the body is required isBodyRequired, BindingContext the binding context to use bindingContext, ServerWebExchange the current exchange exchange)Read the body from a method argument with |
| private void | validate(Object target, Object[] validationHints, MethodParameter parameter, BindingContext binding, ServerWebExchange exchange)
|
| messageReaders | back to summary |
|---|---|
| private final List<HttpMessageReader<?>> messageReaders | |
| SUPPORTED_METHODS | back to summary |
|---|---|
| private static final Set<HttpMethod> SUPPORTED_METHODS | |
| AbstractMessageReaderArgumentResolver | back to summary |
|---|---|
| protected AbstractMessageReaderArgumentResolver(List<HttpMessageReader<?>> readers) Constructor with
| |
| AbstractMessageReaderArgumentResolver | back to summary |
|---|---|
| protected AbstractMessageReaderArgumentResolver(List<HttpMessageReader<?>> messageReaders, ReactiveAdapterRegistry adapterRegistry) Constructor that also accepts a
| |
| extractValidationHints | back to summary |
|---|---|
| private Object[] extractValidationHints(MethodParameter parameter) Check if the given MethodParameter requires validation and if so return
a (possibly empty) Object[] with validation hints. A return value of
| |
| getMessageReaders | back to summary |
|---|---|
| public List Return the configured message converters. | |
| getSupportedMediaTypes | back to summary |
|---|---|
| private List | |
| handleMissingBody | back to summary |
|---|---|
| private ServerWebInputException handleMissingBody(MethodParameter parameter) | |
| handleReadError | back to summary |
|---|---|
| private Throwable handleReadError(MethodParameter parameter, Throwable ex) | |
| readBody | back to summary |
|---|---|
| protected Mono Read the body from a method argument with
| |
| readBody | back to summary |
|---|---|
| protected Mono Read the body from a method argument with
| |
| validate | back to summary |
|---|---|
| private void validate(Object target, Object[] validationHints, MethodParameter parameter, BindingContext binding, ServerWebExchange exchange) | |