public class HttpEntityArgumentResolver extends AbstractMessageReaderArgumentResolver
HttpEntity or RequestEntity
by reading the body of the request through a compatible
HttpMessageReader.| Constructor and Description |
|---|
HttpEntityArgumentResolver(java.util.List<org.springframework.http.codec.HttpMessageReader<?>> readers,
org.springframework.core.ReactiveAdapterRegistry registry) |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<java.lang.Object> |
resolveArgument(org.springframework.core.MethodParameter parameter,
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 HttpEntityArgumentResolver(java.util.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<java.lang.Object> resolveArgument(org.springframework.core.MethodParameter parameter,
BindingContext bindingContext,
org.springframework.web.server.ServerWebExchange exchange)
HandlerMethodArgumentResolverparameter - the method parameterbindingContext - the binding context to useexchange - the current exchangeMono for the argument value, possibly empty