Top Description Fields Constructors Methods
org.springframework.web.reactive.result.method.annotation

public Class PathVariableMapMethodArgumentResolver

extends HandlerMethodArgumentResolverSupport
implements SyncHandlerMethodArgumentResolver
Class Inheritance
All Implemented Interfaces
org.springframework.web.reactive.result.method.SyncHandlerMethodArgumentResolver, org.springframework.web.reactive.result.method.HandlerMethodArgumentResolver
Imports
java.util.Collections, .Map, org.springframework.core.MethodParameter, .ReactiveAdapterRegistry, org.springframework.util.StringUtils, org.springframework.web.bind.annotation.PathVariable, org.springframework.web.reactive.BindingContext, .HandlerMapping, org.springframework.web.reactive.result.method.HandlerMethodArgumentResolverSupport, .SyncHandlerMethodArgumentResolver, org.springframework.web.server.ServerWebExchange

Resolver for Map method arguments annotated with @PathVariable where the annotation does not specify a path variable name. The resulting Map argument is a copy of all URI template name-value pairs.
Author
Rossen Stoyanchev
Since
5.0
See Also
PathVariableMethodArgumentResolver

Field Summary

Inherited from org.springframework.web.reactive.result.method.HandlerMethodArgumentResolverSupport:
logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private boolean
allVariables(PathVariable pathVariable, Class<?> type)

public Object
resolveArgumentValue(MethodParameter
the method parameter
methodParameter
,
BindingContext
the binding context to use
context
,
ServerWebExchange
the current exchange
exchange
)

Implements org.springframework.web.reactive.result.method.SyncHandlerMethodArgumentResolver.resolveArgumentValue.

Resolve the value for the method parameter synchronously.

public boolean
supportsParameter(MethodParameter
the method parameter
parameter
)

Implements org.springframework.web.reactive.result.method.HandlerMethodArgumentResolver.supportsParameter.

Whether this resolver supports the given method parameter.

Inherited from org.springframework.web.reactive.result.method.HandlerMethodArgumentResolverSupport:
checkAnnotatedParamNoReactiveWrappercheckParameterTypecheckParameterTypeNoReactiveWrappergetAdapterRegistry

Constructor Detail

PathVariableMapMethodArgumentResolverback to summary
public PathVariableMapMethodArgumentResolver(ReactiveAdapterRegistry adapterRegistry)

Method Detail

allVariablesback to summary
private boolean allVariables(PathVariable pathVariable, Class<?> type)
resolveArgumentValueback to summary
public Object resolveArgumentValue(MethodParameter methodParameter, BindingContext context, ServerWebExchange exchange)

Implements org.springframework.web.reactive.result.method.SyncHandlerMethodArgumentResolver.resolveArgumentValue.

Doc from org.springframework.web.reactive.result.method.SyncHandlerMethodArgumentResolver.resolveArgumentValue.

Resolve the value for the method parameter synchronously.

Parameters
methodParameter:MethodParameter

the method parameter

context:BindingContext

the binding context to use

exchange:ServerWebExchange

the current exchange

Returns:Object

the resolved value, if any

Annotations
@Override
supportsParameterback to summary
public boolean supportsParameter(MethodParameter parameter)

Implements org.springframework.web.reactive.result.method.HandlerMethodArgumentResolver.supportsParameter.

Doc from org.springframework.web.reactive.result.method.HandlerMethodArgumentResolver.supportsParameter.

Whether this resolver supports the given method parameter.

Parameters
parameter:MethodParameter

the method parameter

Annotations
@Override