Class MappingAwarePageableArgumentResolver
java.lang.Object
org.springframework.data.rest.webmvc.json.MappingAwarePageableArgumentResolver
- All Implemented Interfaces:
PageableArgumentResolver
,HandlerMethodArgumentResolver
public class MappingAwarePageableArgumentResolver
extends Object
implements HandlerMethodArgumentResolver, PageableArgumentResolver
HandlerMethodArgumentResolver
to resolve Pageable
from a PageableArgumentResolver
applying
field to property mapping.
A resolved Pageable
is post-processed by applying Jackson field-to-property mapping if it contains a
Sort
instance. Customized fields are resolved to their property names. Unknown properties are removed from
Sort
.
- Since:
- 2.6
- Author:
- Mark Paluch, Oliver Gierke
-
Constructor Summary
ConstructorDescriptionMappingAwarePageableArgumentResolver
(JacksonMappingAwareSortTranslator translator, PageableArgumentResolver delegate) -
Method Summary
Modifier and TypeMethodDescriptionresolveArgument
(MethodParameter methodParameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) boolean
supportsParameter
(MethodParameter parameter)
-
Constructor Details
-
MappingAwarePageableArgumentResolver
public MappingAwarePageableArgumentResolver(JacksonMappingAwareSortTranslator translator, PageableArgumentResolver delegate)
-
-
Method Details
-
supportsParameter
- Specified by:
supportsParameter
in interfaceHandlerMethodArgumentResolver
-
resolveArgument
public Pageable resolveArgument(MethodParameter methodParameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) - Specified by:
resolveArgument
in interfaceHandlerMethodArgumentResolver
- Specified by:
resolveArgument
in interfacePageableArgumentResolver
-