Class MatrixVariableMethodArgumentResolver
java.lang.Object
org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver
org.springframework.web.servlet.mvc.method.annotation.MatrixVariableMethodArgumentResolver
- All Implemented Interfaces:
org.springframework.web.method.support.HandlerMethodArgumentResolver
public class MatrixVariableMethodArgumentResolver
extends org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver
Resolves arguments annotated with
@MatrixVariable.
If the method parameter is of type Map it will be resolved by
MatrixVariableMapMethodArgumentResolver instead unless the annotation
specifies a name in which case it is considered to be a single attribute of
type map (vs multiple attributes collected in a map).
- Since:
- 3.2
- Author:
- Rossen Stoyanchev, Sam Brannen
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver
org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver.NamedValueInfo -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver.NamedValueInfocreateNamedValueInfo(org.springframework.core.MethodParameter parameter) protected voidhandleMissingValue(String name, org.springframework.core.MethodParameter parameter) protected voidhandleMissingValueAfterConversion(String name, org.springframework.core.MethodParameter parameter, org.springframework.web.context.request.NativeWebRequest request) protected ObjectresolveName(String name, org.springframework.core.MethodParameter parameter, org.springframework.web.context.request.NativeWebRequest request) booleansupportsParameter(org.springframework.core.MethodParameter parameter) Methods inherited from class org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver
handleMissingValue, handleResolvedValue, resolveArgument
-
Constructor Details
-
MatrixVariableMethodArgumentResolver
public MatrixVariableMethodArgumentResolver()
-
-
Method Details
-
supportsParameter
public boolean supportsParameter(org.springframework.core.MethodParameter parameter) -
createNamedValueInfo
protected org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver.NamedValueInfo createNamedValueInfo(org.springframework.core.MethodParameter parameter) - Specified by:
createNamedValueInfoin classorg.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver
-
resolveName
@Nullable protected Object resolveName(String name, org.springframework.core.MethodParameter parameter, org.springframework.web.context.request.NativeWebRequest request) throws Exception - Specified by:
resolveNamein classorg.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver- Throws:
Exception
-
handleMissingValue
protected void handleMissingValue(String name, org.springframework.core.MethodParameter parameter) throws org.springframework.web.bind.ServletRequestBindingException - Overrides:
handleMissingValuein classorg.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver- Throws:
org.springframework.web.bind.ServletRequestBindingException
-
handleMissingValueAfterConversion
protected void handleMissingValueAfterConversion(String name, org.springframework.core.MethodParameter parameter, org.springframework.web.context.request.NativeWebRequest request) throws Exception - Overrides:
handleMissingValueAfterConversionin classorg.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver- Throws:
Exception
-