Class RestPageRequest
- java.lang.Object
- 
- com.atlassian.confluence.rest.api.model.RestPageRequest
 
- 
- All Implemented Interfaces:
- PageRequest
 
 @ExperimentalApi public class RestPageRequest extends 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.
- 
- 
Field SummaryFields Modifier and Type Field Description static StringCURSOR_QPARAMstatic StringLIMIT_QPARAMstatic StringSTART_QPARAM
 - 
Constructor SummaryConstructors Modifier Constructor Description RestPageRequest(Navigation.Builder navBuilder, int start, int limit)RestPageRequest(Navigation.Builder navBuilder, Cursor cursor, int limit)RestPageRequest(Navigation.Builder navBuilder, PageResponse<Content> response)RestPageRequest(javax.ws.rs.core.UriBuilder requestUri, int start, int limit)protectedRestPageRequest(javax.ws.rs.core.UriBuilder requestUri, int start, Cursor cursor, int limit)RestPageRequest(javax.ws.rs.core.UriBuilder requestUri, Cursor cursor, int limit)RestPageRequest(javax.ws.rs.core.UriBuilder requestUri, PageResponse response)RestPageRequest(javax.ws.rs.core.UriInfo requestInfo, int start, int limit)RestPageRequest(javax.ws.rs.core.UriInfo requestInfo, Cursor cursor, int limit)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description RestPageRequestcopyWithLimits(PageResponse response)CursorgetCursor()intgetLimit()intgetStart()javax.ws.rs.core.UriBuildergetUriBuilder()
 
- 
- 
- 
Field Detail- 
START_QPARAMpublic static final String START_QPARAM - See Also:
- Constant Field Values
 
 - 
LIMIT_QPARAMpublic static final String LIMIT_QPARAM - See Also:
- Constant Field Values
 
 - 
CURSOR_QPARAMpublic static final String CURSOR_QPARAM - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
RestPageRequestpublic RestPageRequest(javax.ws.rs.core.UriInfo requestInfo, int start, int limit)- Parameters:
- requestInfo- request UriInfo to be used to produce the self, next and previous links to the resource handling this RestPageRequest
- start- zero-based start index for the page of results (first result is 0)
- limit- the number of the results to return in the page
 
 - 
RestPageRequestpublic RestPageRequest(javax.ws.rs.core.UriInfo requestInfo, Cursor cursor, int limit)- Parameters:
- requestInfo- request UriInfo to be used to produce the self, next and previous links to the resource handling this RestPageRequest
- cursor- the identifier which is used to skip results from a previous query when paginating
- limit- the number of the results to return in the page
- Since:
- 7.18
 
 - 
RestPageRequestpublic RestPageRequest(Navigation.Builder navBuilder, int start, int limit) - Parameters:
- navBuilder- a Navigation.Builder to be used to produce the self, next and previous links to the resource handling this RestPageRequest
- start- zero-based start index for the page of results (first result is 0)
- limit- the number of the results to return in the page
 
 - 
RestPageRequestpublic RestPageRequest(Navigation.Builder navBuilder, Cursor cursor, int limit) - Parameters:
- navBuilder- a Navigation.Builder to be used to produce the self, next and previous links to the resource handling this RestPageRequest
- cursor- the identifier which is used to skip results from a previous query when paginating
- limit- the number of the results to return in the page
- Since:
- 7.18
 
 - 
RestPageRequestpublic RestPageRequest(javax.ws.rs.core.UriBuilder requestUri, int start, int limit)- Parameters:
- requestUri- a uriBuilder to be used to produce the self, next and previous links to the resource handling this RestPageRequest
- start- zero-based start index for the page of results (first result is 0)
- limit- the number of the results to return in the page
 
 - 
RestPageRequestpublic RestPageRequest(javax.ws.rs.core.UriBuilder requestUri, Cursor cursor, int limit)- Parameters:
- requestUri- a uriBuilder to be used to produce the self, next and previous links to the resource handling this RestPageRequest
- cursor- the identifier which is used to skip results from a previous query when paginating
- limit- the number of the results to return in the page
- Since:
- 7.18
 
 - 
RestPageRequestprotected RestPageRequest(javax.ws.rs.core.UriBuilder requestUri, int start, Cursor cursor, int limit)- Parameters:
- requestUri- a uriBuilder to be used to produce the self, next and previous links to the resource handling this RestPageRequest
- start- 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 page
 
 - 
RestPageRequestpublic RestPageRequest(Navigation.Builder navBuilder, PageResponse<Content> response) - Parameters:
- navBuilder- a Navigation.Builder to be used to produce the self, next and previous links to the resource handling this RestPageRequest
- response- a response whose PageRequest supplies the start and limit fields
 
 - 
RestPageRequestpublic RestPageRequest(javax.ws.rs.core.UriBuilder requestUri, PageResponse response)- Parameters:
- requestUri- a uriBuilder to be used to produce the self, next and previous links to the resource handling this RestPageRequest
- response- a response whose PageRequest supplies the start and limit fields
 
 
- 
 - 
Method Detail- 
copyWithLimitspublic RestPageRequest copyWithLimits(PageResponse response) 
 - 
getStartpublic int getStart() - Specified by:
- getStartin interface- PageRequest
- Returns:
- zero-based start index for the page of results (first result is 0)
 
 - 
getLimitpublic int getLimit() - Specified by:
- getLimitin interface- PageRequest
- Returns:
- the number of the results to return in the page
 
 - 
getCursorpublic Cursor getCursor() - Specified by:
- getCursorin interface- PageRequest
- Returns:
- the identifier which is used to skip results from a previous query when paginating
 
 - 
getUriBuilderpublic javax.ws.rs.core.UriBuilder getUriBuilder() 
 
- 
 
-