Interface ParameterResolver
- All Known Implementing Classes:
AbstractParameterResolver,BindingResultParameterResolver,CookieResolver,ModelAttributeResolver,ModelsParameterResolver,MultipartItemResolver,MultipartRequestResolver,RequestBodyResolver,RequestHeaderResolver,RequestParamResolver
public interface ParameterResolver
A strategy interface for resolving method parameters in the context of an MVC request.
Implementations determine whether they can handle a specific parameter via supports(Parameter)
and then provide the value through resolve(HttpServletRequest, Parameter).
-
Method Summary
Modifier and TypeMethodDescriptionResolves and converts the given parameter from the HTTP request.booleanChecks if the resolver can handle the given parameter.
-
Method Details
-
supports
Checks if the resolver can handle the given parameter.- Parameters:
parameter- the parameter to check- Returns:
- true if the resolver can handle the parameter, false otherwise
-
resolve
Resolves and converts the given parameter from the HTTP request.- Parameters:
request- the HTTP requestparameter- the parameter to resolve- Returns:
- the result of the resolution and conversion
-