@ExperimentalApi public class RestPageRequest extends Object implements PageRequest
Modifier and Type | Field and Description |
---|---|
static String |
LIMIT_QPARAM |
static String |
START_QPARAM |
Constructor and Description |
---|
RestPageRequest(Navigation.Builder navBuilder,
int start,
int limit) |
RestPageRequest(Navigation.Builder navBuilder,
PageResponse<Content> response) |
RestPageRequest(javax.ws.rs.core.UriBuilder requestUri,
int start,
int limit) |
RestPageRequest(javax.ws.rs.core.UriBuilder requestUri,
PageResponse response) |
RestPageRequest(javax.ws.rs.core.UriInfo requestInfo,
int start,
int limit) |
Modifier and Type | Method and Description |
---|---|
RestPageRequest |
copyWithLimits(PageResponse response) |
int |
getLimit() |
int |
getStart() |
javax.ws.rs.core.UriBuilder |
getUriBuilder() |
public static final String START_QPARAM
public static final String LIMIT_QPARAM
public RestPageRequest(javax.ws.rs.core.UriInfo requestInfo, int start, int limit)
requestInfo
- request UriInfo to be used to produce the self, next and previous links
to the resource handling this RestPageRequeststart
- zero-based start index for the page of results (first result is 0)limit
- the number of the results to return in the pagepublic RestPageRequest(Navigation.Builder navBuilder, int start, int limit)
navBuilder
- a Navigation.Builder to be used to produce the self, next and previous links
to the resource handling this RestPageRequeststart
- zero-based start index for the page of results (first result is 0)limit
- the number of the results to return in the pagepublic RestPageRequest(javax.ws.rs.core.UriBuilder requestUri, int start, int limit)
requestUri
- a uriBuilder to be used to produce the self, next and previous links
to the resource handling this RestPageRequeststart
- zero-based start index for the page of results (first result is 0)limit
- the number of the results to return in the pagepublic RestPageRequest(Navigation.Builder navBuilder, PageResponse<Content> response)
navBuilder
- a Navigation.Builder to be used to produce the self, next and previous links
to the resource handling this RestPageRequestresponse
- a response whose PageRequest supplies the start and limit fieldspublic RestPageRequest(javax.ws.rs.core.UriBuilder requestUri, PageResponse response)
requestUri
- a uriBuilder to be used to produce the self, next and previous links
to the resource handling this RestPageRequestresponse
- a response whose PageRequest supplies the start and limit fieldspublic RestPageRequest copyWithLimits(PageResponse response)
public int getStart()
getStart
in interface PageRequest
public int getLimit()
getLimit
in interface PageRequest
public javax.ws.rs.core.UriBuilder getUriBuilder()
Copyright © 2003–2019 Atlassian. All rights reserved.