public class SortHandlerMethodArgumentResolver extends SortHandlerMethodArgumentResolverSupport implements SortArgumentResolver
HandlerMethodArgumentResolver
to automatically create Sort
instances from request parameters or
SortDefault
annotations.Constructor and Description |
---|
SortHandlerMethodArgumentResolver() |
Modifier and Type | Method and Description |
---|---|
Sort |
resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory)
Resolves a
Sort method parameter into an argument value from a given request. |
boolean |
supportsParameter(MethodParameter parameter) |
foldIntoExpressions, getDefaultFromAnnotationOrFallback, getPropertyDelimiter, getSortParameter, legacyFoldExpressions, setFallbackSort, setPropertyDelimiter, setQualifierDelimiter, setSortParameter
public boolean supportsParameter(MethodParameter parameter)
supportsParameter
in interface HandlerMethodArgumentResolver
public Sort resolveArgument(MethodParameter parameter, @Nullable ModelAndViewContainer mavContainer, NativeWebRequest webRequest, @Nullable WebDataBinderFactory binderFactory)
SortArgumentResolver
Sort
method parameter into an argument value from a given request.resolveArgument
in interface SortArgumentResolver
resolveArgument
in interface HandlerMethodArgumentResolver
parameter
- the method parameter to resolve. This parameter must have previously been passed to
HandlerMethodArgumentResolver.supportsParameter(org.springframework.core.MethodParameter)
which must have returned true
.mavContainer
- the ModelAndViewContainer for the current requestwebRequest
- the current requestbinderFactory
- a factory for creating WebDataBinder
instancesnull
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.