Class PageableRequestParameterResolver
- java.lang.Object
-
- org.bremersee.apiclient.webflux.contract.spring.SortRequestParameterResolver
-
- org.bremersee.apiclient.webflux.contract.spring.PageableRequestParameterResolver
-
- All Implemented Interfaces:
Function<Invocation,org.springframework.util.MultiValueMap<String,Object>>
,Predicate<InvocationParameter>
,QueryParametersResolver
public class PageableRequestParameterResolver extends SortRequestParameterResolver
The pageable request parameter resolver.- Author:
- Christian Bremer
-
-
Constructor Summary
Constructors Constructor Description PageableRequestParameterResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.util.MultiValueMap<String,Object>
apply(Invocation invocation)
protected org.springframework.util.MultiValueMap<String,Object>
getRequestParameters(org.springframework.data.domain.Pageable pageable)
Gets request parameters.boolean
test(InvocationParameter invocationParameter)
PageableRequestParameterResolver
withPageNumberRequestParamName(String pageNumberRequestParamName)
With page number request param name.PageableRequestParameterResolver
withPageSizeRequestParamName(String pageSizeRequestParamName)
With page size request param name.-
Methods inherited from class org.bremersee.apiclient.webflux.contract.spring.SortRequestParameterResolver
getRequestParameters, getRequestParamValue, withDescValue, withRequestParamName, withSeparatorValue
-
-
-
-
Method Detail
-
withPageNumberRequestParamName
public PageableRequestParameterResolver withPageNumberRequestParamName(String pageNumberRequestParamName)
With page number request param name.- Parameters:
pageNumberRequestParamName
- the page number request param name- Returns:
- the pageable request parameter resolver
-
withPageSizeRequestParamName
public PageableRequestParameterResolver withPageSizeRequestParamName(String pageSizeRequestParamName)
With page size request param name.- Parameters:
pageSizeRequestParamName
- the page size request param name- Returns:
- the pageable request parameter resolver
-
apply
public org.springframework.util.MultiValueMap<String,Object> apply(Invocation invocation)
- Specified by:
apply
in interfaceFunction<Invocation,org.springframework.util.MultiValueMap<String,Object>>
- Overrides:
apply
in classSortRequestParameterResolver
-
test
public boolean test(InvocationParameter invocationParameter)
- Specified by:
test
in interfacePredicate<InvocationParameter>
- Overrides:
test
in classSortRequestParameterResolver
-
-