Package org.springframework.data.web
Class OffsetScrollPositionHandlerMethodArgumentResolverSupport
java.lang.Object
org.springframework.data.web.OffsetScrollPositionHandlerMethodArgumentResolverSupport
- Direct Known Subclasses:
OffsetScrollPositionHandlerMethodArgumentResolver
,ReactiveOffsetScrollPositionHandlerMethodArgumentResolver
Base class providing methods for handler method argument resolvers to create
OffsetScrollPosition
instances
from request parameters.- Since:
- 3.2
- Author:
- Yanming Zhou
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
getOffsetParameter
(MethodParameter parameter) Returns the offset parameter to be looked up from the request.void
setOffsetParameter
(String offsetParameter) Configure the request parameter to lookup offset information from.void
setQualifierDelimiter
(String qualifierDelimiter) Configures the delimiter used to separate the qualifier from the offset parameter.
-
Constructor Details
-
OffsetScrollPositionHandlerMethodArgumentResolverSupport
public OffsetScrollPositionHandlerMethodArgumentResolverSupport()
-
-
Method Details
-
setOffsetParameter
Configure the request parameter to lookup offset information from. Defaults tooffset
.- Parameters:
offsetParameter
- must not be null or empty.
-
setQualifierDelimiter
Configures the delimiter used to separate the qualifier from the offset parameter. Defaults to_
, so a qualified offset property would look likequalifier_offset
.- Parameters:
qualifierDelimiter
- the qualifier delimiter to be used or null to reset to the default.
-
getOffsetParameter
Returns the offset parameter to be looked up from the request. Potentially applies qualifiers to it.- Parameters:
parameter
- can be null.- Returns:
- the offset parameter
-