com.atlassian.confluence.rest.api.model
Class RestPageRequest
java.lang.Object
com.atlassian.confluence.rest.api.model.RestPageRequest
- All Implemented Interfaces:
- PageRequest
@ExperimentalApi
public class RestPageRequest
- extends java.lang.Object
- implements PageRequest
A request for a page of data. It is a page request that also wraps the
UriInfo of the original request, this allows navigational URIs to be built for the
next and previous pages.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
START_QPARAM
public static java.lang.String START_QPARAM
LIMIT_QPARAM
public static java.lang.String LIMIT_QPARAM
RestPageRequest
public RestPageRequest(javax.ws.rs.core.UriInfo requestInfo,
int start,
int limit)
RestPageRequest
public RestPageRequest(Navigation.Builder navBuilder,
int start,
int limit)
RestPageRequest
public RestPageRequest(javax.ws.rs.core.UriBuilder requestUri,
int start,
int limit)
RestPageRequest
public RestPageRequest(Navigation.Builder navBuilder,
PageResponse<Content> pageResponse)
RestPageRequest
public RestPageRequest(javax.ws.rs.core.UriBuilder requestUri,
PageResponse response)
copyWithLimits
public RestPageRequest copyWithLimits(PageResponse response)
getStart
public int getStart()
- Specified by:
getStart
in interface PageRequest
- Returns:
- start index for the page of results
getLimit
public int getLimit()
- Specified by:
getLimit
in interface PageRequest
- Returns:
- the number of the results to return in the page
getUriBuilder
public javax.ws.rs.core.UriBuilder getUriBuilder()
Copyright © 2003-2014 Atlassian. All Rights Reserved.