Package org.springframework.data.web
Interface OffsetScrollPositionArgumentResolver
- All Superinterfaces:
HandlerMethodArgumentResolver
- All Known Implementing Classes:
OffsetScrollPositionHandlerMethodArgumentResolver
Argument resolver to extract a
OffsetScrollPosition
object from a NativeWebRequest
for a particular
MethodParameter
. A OffsetScrollPositionArgumentResolver
can either resolve
OffsetScrollPosition
itself or wrap another OffsetScrollPositionArgumentResolver
to post-process
OffsetScrollPosition
.- Since:
- 3.2
- Author:
- Yanming Zhou, Mark Paluch
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionresolveArgument
(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory) Resolves aOffsetScrollPosition
method parameter into an argument value from a given request.Methods inherited from interface org.springframework.web.method.support.HandlerMethodArgumentResolver
supportsParameter
-
Method Details
-
resolveArgument
Object resolveArgument(MethodParameter parameter, @Nullable ModelAndViewContainer mavContainer, NativeWebRequest webRequest, @Nullable WebDataBinderFactory binderFactory) Resolves aOffsetScrollPosition
method parameter into an argument value from a given request. Supports also wrapped arguments inOptional
.- 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 or null if the value cannot be resolved. The returned value
considers
Optional
wrapping by returing either the value wrapped within Optional or Optional.empty().
-