Class OffsetScrollPositionHandlerMethodArgumentResolverSupport

java.lang.Object
org.springframework.data.web.OffsetScrollPositionHandlerMethodArgumentResolverSupport
Direct Known Subclasses:
OffsetScrollPositionHandlerMethodArgumentResolver, ReactiveOffsetScrollPositionHandlerMethodArgumentResolver

public abstract class OffsetScrollPositionHandlerMethodArgumentResolverSupport extends Object
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 Details

    • OffsetScrollPositionHandlerMethodArgumentResolverSupport

      public OffsetScrollPositionHandlerMethodArgumentResolverSupport()
  • Method Details

    • setOffsetParameter

      public void setOffsetParameter(String offsetParameter)
      Configure the request parameter to lookup offset information from. Defaults to offset.
      Parameters:
      offsetParameter - must not be null or empty.
    • setQualifierDelimiter

      public void setQualifierDelimiter(@Nullable String qualifierDelimiter)
      Configures the delimiter used to separate the qualifier from the offset parameter. Defaults to _, so a qualified offset property would look like qualifier_offset.
      Parameters:
      qualifierDelimiter - the qualifier delimiter to be used or null to reset to the default.
    • getOffsetParameter

      protected String getOffsetParameter(MethodParameter parameter)
      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