public class MappingAwareDefaultedPageableArgumentResolver extends Object implements HandlerMethodArgumentResolver
HandlerMethodArgumentResolver
to resolve DefaultedPageable
from a
PageableHandlerMethodArgumentResolver
applying field to property mapping.
A resolved DefaultedPageable
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
.
Constructor and Description |
---|
MappingAwareDefaultedPageableArgumentResolver(@NonNull JacksonMappingAwareSortTranslator translator,
@NonNull PageableHandlerMethodArgumentResolver delegate) |
Modifier and Type | Method and Description |
---|---|
Object |
resolveArgument(MethodParameter parameter,
ModelAndViewContainer mavContainer,
NativeWebRequest webRequest,
WebDataBinderFactory binderFactory) |
boolean |
supportsParameter(MethodParameter parameter) |
public MappingAwareDefaultedPageableArgumentResolver(@NonNull @NonNull JacksonMappingAwareSortTranslator translator, @NonNull @NonNull PageableHandlerMethodArgumentResolver delegate)
public boolean supportsParameter(MethodParameter parameter)
supportsParameter
in interface HandlerMethodArgumentResolver
public Object resolveArgument(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) throws Exception
resolveArgument
in interface HandlerMethodArgumentResolver
Exception
Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.