public interface Pagination
Modifier and Type | Method and Description |
---|---|
long |
maximumLimit()
Indicates the system wide maximum number of items that a single page may contain.
|
PaginationState |
startPagination(javax.servlet.http.HttpServletRequest request, PaginationMetadata pagination)
Determine the maximum number of items that should be included in the representation of the specified request
|
PaginationState startPagination(javax.servlet.http.HttpServletRequest request, PaginationMetadata pagination)
request
- The request for the resourcepagination
- The metadata about how the resource is paginatedlong maximumLimit()
limit
query string parameter could cause a denial of service, by specifying a large value.