public class OffsetBasedPagination extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
HEADER_LIMIT |
static String |
HEADER_OFFSET |
static String |
HEADER_TOTAL |
| Constructor and Description |
|---|
OffsetBasedPagination()
Empty Pagination Constructor
|
OffsetBasedPagination(javax.servlet.http.HttpServletRequest request) |
OffsetBasedPagination(int offset,
int limit) |
OffsetBasedPagination(int offset,
int limit,
int total) |
| Modifier and Type | Method and Description |
|---|---|
int |
getLimit() |
int |
getOffset() |
int |
getTotal() |
OffsetBasedPagination |
setLimit(int limit) |
OffsetBasedPagination |
setOffset(int offset) |
OffsetBasedPagination |
setTotal(int total) |
public static final String HEADER_LIMIT
public static final String HEADER_OFFSET
public static final String HEADER_TOTAL
public OffsetBasedPagination()
public OffsetBasedPagination(javax.servlet.http.HttpServletRequest request)
throws VitamException
request - VitamExceptionpublic OffsetBasedPagination(int offset,
int limit)
offset - limit - public OffsetBasedPagination(int offset,
int limit,
int total)
offset - limit - total - public int getOffset()
public OffsetBasedPagination setOffset(int offset)
offset - the offset to setpublic int getLimit()
public OffsetBasedPagination setLimit(int limit)
limit - the limit to setpublic int getTotal()
public OffsetBasedPagination setTotal(int total)
total - the total to setCopyright © 2018 Vitam. All rights reserved.