Package org.springframework.data.web
Interface SortArgumentResolver
- All Superinterfaces:
HandlerMethodArgumentResolver
- All Known Implementing Classes:
HateoasSortHandlerMethodArgumentResolver
,SortHandlerMethodArgumentResolver
Argument resolver to extract a
Sort
object from a NativeWebRequest
for a particular
MethodParameter
. A SortArgumentResolver
can either resolve Sort
itself or wrap another
SortArgumentResolver
to post-process Sort
.- Since:
- 1.13
- Author:
- Mark Paluch
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionresolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) Resolves aSort
method parameter into an argument value from a given request.Methods inherited from interface org.springframework.web.method.support.HandlerMethodArgumentResolver
supportsParameter
-
Method Details
-
resolveArgument
@NonNull Sort resolveArgument(MethodParameter parameter, @Nullable ModelAndViewContainer mavContainer, NativeWebRequest webRequest, @Nullable WebDataBinderFactory binderFactory) Resolves aSort
method parameter into an argument value from a given request.- Specified by:
resolveArgument
in interfaceHandlerMethodArgumentResolver
- Parameters:
parameter
- the method parameter to resolve. This parameter must have previously been passed toHandlerMethodArgumentResolver.supportsParameter(org.springframework.core.MethodParameter)
which must have returnedtrue
.mavContainer
- the ModelAndViewContainer for the current requestwebRequest
- the current requestbinderFactory
- a factory for creatingWebDataBinder
instances- Returns:
- the resolved argument value
-