Class DefaultedPageableHandlerMethodArgumentResolver
java.lang.Object
org.springframework.data.rest.webmvc.support.DefaultedPageableHandlerMethodArgumentResolver
- All Implemented Interfaces:
org.springframework.web.method.support.HandlerMethodArgumentResolver
public class DefaultedPageableHandlerMethodArgumentResolver
extends Object
implements org.springframework.web.method.support.HandlerMethodArgumentResolver
HandlerMethodArgumentResolver
to resolve DefaultedPageable
if requested. Allows to find out whether
the resolved Pageable
is logically identical to the fallback on configured on the delegate
PageableHandlerMethodArgumentResolver
.- Author:
- Oliver Gierke
-
Constructor Summary
ConstructorDescriptionDefaultedPageableHandlerMethodArgumentResolver
(org.springframework.data.web.PageableHandlerMethodArgumentResolver resolver) Creates a newDefaultedPageableHandlerMethodArgumentResolver
delegating to the givenPageableHandlerMethodArgumentResolver
. -
Method Summary
Modifier and TypeMethodDescriptionresolveArgument
(org.springframework.core.MethodParameter parameter, org.springframework.web.method.support.ModelAndViewContainer mavContainer, org.springframework.web.context.request.NativeWebRequest webRequest, org.springframework.web.bind.support.WebDataBinderFactory binderFactory) boolean
supportsParameter
(org.springframework.core.MethodParameter parameter)
-
Constructor Details
-
DefaultedPageableHandlerMethodArgumentResolver
public DefaultedPageableHandlerMethodArgumentResolver(org.springframework.data.web.PageableHandlerMethodArgumentResolver resolver) Creates a newDefaultedPageableHandlerMethodArgumentResolver
delegating to the givenPageableHandlerMethodArgumentResolver
.- Parameters:
resolver
- must not be null.
-
-
Method Details
-
resolveArgument
public Object resolveArgument(org.springframework.core.MethodParameter parameter, org.springframework.web.method.support.ModelAndViewContainer mavContainer, org.springframework.web.context.request.NativeWebRequest webRequest, org.springframework.web.bind.support.WebDataBinderFactory binderFactory) throws Exception - Specified by:
resolveArgument
in interfaceorg.springframework.web.method.support.HandlerMethodArgumentResolver
- Throws:
Exception
-
supportsParameter
public boolean supportsParameter(org.springframework.core.MethodParameter parameter) - Specified by:
supportsParameter
in interfaceorg.springframework.web.method.support.HandlerMethodArgumentResolver
-