@ExperimentalApi public class RestPageRequest extends Object implements PageRequest
Modifier and Type | Field and Description |
---|---|
static String |
CURSOR_QPARAM |
static String |
LIMIT_QPARAM |
static String |
START_QPARAM |
Modifier | Constructor and Description |
---|---|
|
RestPageRequest(Navigation.Builder navBuilder,
Cursor cursor,
int limit) |
|
RestPageRequest(Navigation.Builder navBuilder,
int start,
int limit) |
|
RestPageRequest(Navigation.Builder navBuilder,
PageResponse<Content> response) |
|
RestPageRequest(javax.ws.rs.core.UriBuilder requestUri,
Cursor cursor,
int limit) |
protected |
RestPageRequest(javax.ws.rs.core.UriBuilder requestUri,
int start,
Cursor cursor,
int limit) |
|
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,
Cursor cursor,
int limit) |
|
RestPageRequest(javax.ws.rs.core.UriInfo requestInfo,
int start,
int limit) |
Modifier and Type | Method and Description |
---|---|
RestPageRequest |
copyWithLimits(PageResponse response) |
Cursor |
getCursor() |
int |
getLimit() |
int |
getStart() |
javax.ws.rs.core.UriBuilder |
getUriBuilder() |
public static final String START_QPARAM
public static final String LIMIT_QPARAM
public static final String CURSOR_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(javax.ws.rs.core.UriInfo requestInfo, Cursor cursor, int limit)
requestInfo
- request UriInfo to be used to produce the self, next and previous links
to the resource handling this RestPageRequestcursor
- the identifier which is used to skip results from a previous query when paginatinglimit
- 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(Navigation.Builder navBuilder, Cursor cursor, int limit)
navBuilder
- a Navigation.Builder to be used to produce the self, next and previous links
to the resource handling this RestPageRequestcursor
- the identifier which is used to skip results from a previous query when paginatinglimit
- 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(javax.ws.rs.core.UriBuilder requestUri, Cursor cursor, int limit)
requestUri
- a uriBuilder to be used to produce the self, next and previous links
to the resource handling this RestPageRequestcursor
- the identifier which is used to skip results from a previous query when paginatinglimit
- the number of the results to return in the pageprotected RestPageRequest(javax.ws.rs.core.UriBuilder requestUri, int start, Cursor cursor, 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). This value shouldn't be used when cursor is not null.cursor
- the identifier which is used to skip results from a previous query when paginating. This value shouldn't be used when start>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 Cursor getCursor()
getCursor
in interface PageRequest
public javax.ws.rs.core.UriBuilder getUriBuilder()
Copyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences