public class ErrorsMethodArgumentResolver extends HandlerMethodArgumentResolverSupport
Errors
or BindingResult
method arguments.
An Errors
argument is expected to appear immediately after the
model attribute in the method signature.
logger
Constructor and Description |
---|
ErrorsMethodArgumentResolver(ReactiveAdapterRegistry registry) |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Object> |
resolveArgument(MethodParameter parameter,
BindingContext context,
ServerWebExchange exchange)
Resolve the value for the method parameter.
|
boolean |
supportsParameter(MethodParameter parameter)
Whether this resolver supports the given method parameter.
|
checkAnnotatedParamNoReactiveWrapper, checkParameterType, checkParameterTypeNoReactiveWrapper, getAdapterRegistry
public ErrorsMethodArgumentResolver(ReactiveAdapterRegistry registry)
public boolean supportsParameter(MethodParameter parameter)
HandlerMethodArgumentResolver
parameter
- the method parameterpublic reactor.core.publisher.Mono<Object> resolveArgument(MethodParameter parameter, BindingContext context, ServerWebExchange exchange)
HandlerMethodArgumentResolver
parameter
- the method parametercontext
- the binding context to useexchange
- the current exchangeMono
for the argument value, possibly empty