Package org.springframework.data.web
Class ReactivePageableHandlerMethodArgumentResolver
java.lang.Object
org.springframework.data.web.PageableHandlerMethodArgumentResolverSupport
org.springframework.data.web.ReactivePageableHandlerMethodArgumentResolver
- All Implemented Interfaces:
org.springframework.web.reactive.result.method.HandlerMethodArgumentResolver
,org.springframework.web.reactive.result.method.SyncHandlerMethodArgumentResolver
public class ReactivePageableHandlerMethodArgumentResolver
extends PageableHandlerMethodArgumentResolverSupport
implements org.springframework.web.reactive.result.method.SyncHandlerMethodArgumentResolver
Extracts paging information from web requests and thus allows injecting
Pageable
instances into WebFlux
controller methods. Request properties to be parsed can be configured. Default configuration uses request parameters
beginning with PageableHandlerMethodArgumentResolverSupport.DEFAULT_PAGE_PARAMETER
PageableHandlerMethodArgumentResolverSupport.DEFAULT_QUALIFIER_DELIMITER
.- Since:
- 2.2
- Author:
- Mark Paluch
-
Constructor Summary
ConstructorDescriptionConstructs an instance of this resolved with a defaultReactiveSortHandlerMethodArgumentResolver
.ReactivePageableHandlerMethodArgumentResolver
(ReactiveSortHandlerMethodArgumentResolver sortResolver) Constructs an instance of this resolver with the specifiedSortArgumentResolver
. -
Method Summary
Modifier and TypeMethodDescriptionresolveArgumentValue
(org.springframework.core.MethodParameter parameter, org.springframework.web.reactive.BindingContext bindingContext, org.springframework.web.server.ServerWebExchange exchange) boolean
supportsParameter
(org.springframework.core.MethodParameter parameter) Methods inherited from class org.springframework.data.web.PageableHandlerMethodArgumentResolverSupport
getMaxPageSize, getPageable, getPageParameterName, getParameterNameToUse, getSizeParameterName, isFallbackPageable, isOneIndexedParameters, setFallbackPageable, setMaxPageSize, setOneIndexedParameters, setPageParameterName, setPrefix, setQualifierDelimiter, setSizeParameterName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.web.reactive.result.method.SyncHandlerMethodArgumentResolver
resolveArgument
-
Constructor Details
-
ReactivePageableHandlerMethodArgumentResolver
public ReactivePageableHandlerMethodArgumentResolver()Constructs an instance of this resolved with a defaultReactiveSortHandlerMethodArgumentResolver
. -
ReactivePageableHandlerMethodArgumentResolver
public ReactivePageableHandlerMethodArgumentResolver(ReactiveSortHandlerMethodArgumentResolver sortResolver) Constructs an instance of this resolver with the specifiedSortArgumentResolver
.- Parameters:
sortResolver
- the sort resolver to use.
-
-
Method Details
-
supportsParameter
public boolean supportsParameter(org.springframework.core.MethodParameter parameter) - Specified by:
supportsParameter
in interfaceorg.springframework.web.reactive.result.method.HandlerMethodArgumentResolver
-
resolveArgumentValue
@NonNull public Pageable resolveArgumentValue(org.springframework.core.MethodParameter parameter, org.springframework.web.reactive.BindingContext bindingContext, org.springframework.web.server.ServerWebExchange exchange) - Specified by:
resolveArgumentValue
in interfaceorg.springframework.web.reactive.result.method.SyncHandlerMethodArgumentResolver
-