public abstract class AbstractMessageReaderArgumentResolver extends HandlerMethodArgumentResolverSupport
HttpMessageReader.
Applies validation if the method argument is annotated with
@javax.validation.Valid or
Validated. Validation
failure results in an ServerWebInputException.
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractMessageReaderArgumentResolver(java.util.List<org.springframework.http.codec.HttpMessageReader<?>> readers)
Constructor with
HttpMessageReader's and a Validator. |
protected |
AbstractMessageReaderArgumentResolver(java.util.List<org.springframework.http.codec.HttpMessageReader<?>> messageReaders,
org.springframework.core.ReactiveAdapterRegistry adapterRegistry)
Constructor that also accepts a
ReactiveAdapterRegistry. |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<org.springframework.http.codec.HttpMessageReader<?>> |
getMessageReaders()
Return the configured message converters.
|
protected reactor.core.publisher.Mono<java.lang.Object> |
readBody(org.springframework.core.MethodParameter bodyParameter,
boolean isBodyRequired,
BindingContext bindingContext,
org.springframework.web.server.ServerWebExchange exchange) |
checkAnnotatedParamNoReactiveWrapper, checkParameterType, checkParameterTypeNoReactiveWrapper, getAdapterRegistryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitresolveArgument, supportsParameterprotected AbstractMessageReaderArgumentResolver(java.util.List<org.springframework.http.codec.HttpMessageReader<?>> readers)
HttpMessageReader's and a Validator.readers - readers to convert from the request bodyprotected AbstractMessageReaderArgumentResolver(java.util.List<org.springframework.http.codec.HttpMessageReader<?>> messageReaders,
org.springframework.core.ReactiveAdapterRegistry adapterRegistry)
ReactiveAdapterRegistry.messageReaders - readers to convert from the request bodyadapterRegistry - for adapting to other reactive types from Flux and Monopublic java.util.List<org.springframework.http.codec.HttpMessageReader<?>> getMessageReaders()
protected reactor.core.publisher.Mono<java.lang.Object> readBody(org.springframework.core.MethodParameter bodyParameter,
boolean isBodyRequired,
BindingContext bindingContext,
org.springframework.web.server.ServerWebExchange exchange)