类 MatrixParamMapParameterResolvingStrategy
java.lang.Object
cn.taketoday.web.bind.resolver.MatrixParamMapParameterResolvingStrategy
- 所有已实现的接口:
ParameterResolvingStrategy
public class MatrixParamMapParameterResolvingStrategy
extends Object
implements ParameterResolvingStrategy
Resolves arguments of type
Map annotated with @MatrixParam
where the annotation does not specify a name. In other words the purpose of this resolver
is to provide access to multiple matrix variables, either all or associated with a specific
path variable.
When a name is specified, an argument of type Map is considered to be a single attribute
with a Map value, and is resolved by MatrixParamParameterResolvingStrategy instead.
- 从以下版本开始:
- 4.0 2022/1/23 22:23
- 作者:
- Rossen Stoyanchev, Harry Yang
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private booleanisSingleValueMap(cn.taketoday.core.MethodParameter parameter) resolveArgument(RequestContext context, ResolvableMethodParameter resolvable) Resolve parameterbooleansupportsParameter(ResolvableMethodParameter resolvable) Whether the given parameter is supported by this resolver.
-
构造器详细资料
-
MatrixParamMapParameterResolvingStrategy
public MatrixParamMapParameterResolvingStrategy()
-
-
方法详细资料
-
supportsParameter
从接口复制的说明:ParameterResolvingStrategyWhether the given parameter is supported by this resolver.static match
- 指定者:
supportsParameter在接口中ParameterResolvingStrategy
-
resolveArgument
@Nullable public Object resolveArgument(RequestContext context, ResolvableMethodParameter resolvable) throws Throwable 从接口复制的说明:ParameterResolvingStrategyResolve parameter- 指定者:
resolveArgument在接口中ParameterResolvingStrategy- 参数:
context- Current request contextresolvable- resolvable parameter- 返回:
- method parameter instance
- 抛出:
Throwable- if anyExceptionoccurred- 另请参阅:
-
isSingleValueMap
private boolean isSingleValueMap(cn.taketoday.core.MethodParameter parameter)
-