Interface SyncHandlerMethodArgumentResolver
- All Superinterfaces:
HandlerMethodArgumentResolver
- All Known Implementing Classes:
AbstractNamedValueSyncArgumentResolver
,CookieValueMethodArgumentResolver
,ExpressionValueMethodArgumentResolver
,MatrixVariableMapMethodArgumentResolver
,MatrixVariableMethodArgumentResolver
,ModelMethodArgumentResolver
,PathVariableMapMethodArgumentResolver
,PathVariableMethodArgumentResolver
,RequestAttributeMethodArgumentResolver
,RequestHeaderMapMethodArgumentResolver
,RequestHeaderMethodArgumentResolver
,RequestParamMapMethodArgumentResolver
,RequestParamMethodArgumentResolver
,ServerWebExchangeMethodArgumentResolver
,SessionStatusMethodArgumentResolver
An extension of
HandlerMethodArgumentResolver
for implementations
that are synchronous in nature and do not block to resolve values.- Since:
- 5.0
- Author:
- Rossen Stoyanchev
-
Method Summary
Modifier and TypeMethodDescriptiondefault reactor.core.publisher.Mono<Object>
resolveArgument
(MethodParameter parameter, BindingContext bindingContext, ServerWebExchange exchange) Resolve the value for the method parameter.resolveArgumentValue
(MethodParameter parameter, BindingContext bindingContext, ServerWebExchange exchange) Resolve the value for the method parameter synchronously.Methods inherited from interface org.springframework.web.reactive.result.method.HandlerMethodArgumentResolver
supportsParameter
-
Method Details
-
resolveArgument
default reactor.core.publisher.Mono<Object> resolveArgument(MethodParameter parameter, BindingContext bindingContext, ServerWebExchange exchange) Resolve the value for the method parameter.By default this simply delegates to
resolveArgumentValue(org.springframework.core.MethodParameter, org.springframework.web.reactive.BindingContext, org.springframework.web.server.ServerWebExchange)
for synchronous resolution.- Specified by:
resolveArgument
in interfaceHandlerMethodArgumentResolver
- Parameters:
parameter
- the method parameterbindingContext
- the binding context to useexchange
- the current exchange- Returns:
Mono
for the argument value, possibly empty
-
resolveArgumentValue
@Nullable Object resolveArgumentValue(MethodParameter parameter, BindingContext bindingContext, ServerWebExchange exchange) Resolve the value for the method parameter synchronously.- Parameters:
parameter
- the method parameterbindingContext
- the binding context to useexchange
- the current exchange- Returns:
- the resolved value, if any
-