Class OffsetBasedPagination
java.lang.Object
fr.gouv.vitam.ihmdemo.common.pagination.OffsetBasedPagination
Offset-based pagination using HTTP Headers
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEmpty Pagination ConstructorOffsetBasedPagination(int offset, int limit) OffsetBasedPagination(int offset, int limit, int total) OffsetBasedPagination(javax.servlet.http.HttpServletRequest request) -
Method Summary
-
Field Details
-
HEADER_LIMIT
- See Also:
-
HEADER_OFFSET
- See Also:
-
HEADER_TOTAL
- See Also:
-
-
Constructor Details
-
OffsetBasedPagination
public OffsetBasedPagination()Empty Pagination Constructor -
OffsetBasedPagination
- Parameters:
request-- Throws:
VitamException
-
OffsetBasedPagination
public OffsetBasedPagination(int offset, int limit) - Parameters:
offset-limit-
-
OffsetBasedPagination
public OffsetBasedPagination(int offset, int limit, int total) - Parameters:
offset-limit-total-
-
-
Method Details
-
getOffset
public int getOffset()- Returns:
- the offset
-
setOffset
- Parameters:
offset- the offset to set- Returns:
- this
-
getLimit
public int getLimit()- Returns:
- the limit
-
setLimit
- Parameters:
limit- the limit to set- Returns:
- this
-
getTotal
public int getTotal()- Returns:
- the total
-
setTotal
- Parameters:
total- the total to set- Returns:
- this
-