Class PathVariableMapMethodArgumentResolver
- java.lang.Object
- org.springframework.web.reactive.result.method.HandlerMethodArgumentResolverSupport
- org.springframework.web.reactive.result.method.annotation.PathVariableMapMethodArgumentResolver
- All Implemented Interfaces:
HandlerMethodArgumentResolver,SyncHandlerMethodArgumentResolver
public class PathVariableMapMethodArgumentResolver extends HandlerMethodArgumentResolverSupport implements SyncHandlerMethodArgumentResolver
Resolver forMapmethod arguments also annotated with@PathVariablewhere the annotation does not specify a path variable name. The resultingMapargument is a coyp of all URI template name-value pairs.- Since:
- 5.0
- Author:
- Rossen Stoyanchev
- See Also:
PathVariableMethodArgumentResolver
Field Summary
Fields inherited from class org.springframework.web.reactive.result.method.HandlerMethodArgumentResolverSupport
logger
Constructor Summary
Constructors Constructor Description PathVariableMapMethodArgumentResolver(ReactiveAdapterRegistry adapterRegistry)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectresolveArgumentValue(MethodParameter methodParameter, BindingContext context, ServerWebExchange exchange)Resolve the value for the method parameter synchronously.booleansupportsParameter(MethodParameter parameter)Whether this resolver supports the given method parameter.Methods inherited from class org.springframework.web.reactive.result.method.HandlerMethodArgumentResolverSupport
checkAnnotatedParamNoReactiveWrapper, checkParameterType, checkParameterTypeNoReactiveWrapper, getAdapterRegistry
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.web.reactive.result.method.SyncHandlerMethodArgumentResolver
resolveArgument
Constructor Detail
PathVariableMapMethodArgumentResolver
public PathVariableMapMethodArgumentResolver(ReactiveAdapterRegistry adapterRegistry)
Method Detail
supportsParameter
public boolean supportsParameter(MethodParameter parameter)
Description copied from interface:HandlerMethodArgumentResolverWhether this resolver supports the given method parameter.- Specified by:
supportsParameterin interfaceHandlerMethodArgumentResolver- Parameters:
parameter- the method parameter
resolveArgumentValue
public Object resolveArgumentValue(MethodParameter methodParameter, BindingContext context, ServerWebExchange exchange)
Description copied from interface:SyncHandlerMethodArgumentResolverResolve the value for the method parameter synchronously.- Specified by:
resolveArgumentValuein interfaceSyncHandlerMethodArgumentResolver- Parameters:
methodParameter- the method parametercontext- the binding context to useexchange- the current exchange- Returns:
- the resolved value, if any