public class PageInfo extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PAGESIZE |
static String |
PAGE_PARAM |
protected int |
pageNumber |
protected int |
pageSize |
static String |
PAGESIZE_PARAM |
protected javax.ws.rs.core.UriInfo |
requestURI |
| Constructor and Description |
|---|
PageInfo(javax.ws.rs.core.UriInfo requestURI) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAbsoluteRequestURI()
Return the request URI with query parameters stripped off.
|
int |
getOffset()
Return the index of the first result that is requested.
|
int |
getPageNumber()
Return the page number requested, default is 0.
|
int |
getPageSize()
Return the page size for this request.
|
String |
getPageURI()
Return the page URI, this is the request URI with appropriate page and pagesize query
parameters added.
|
String |
getPageURI(int pn)
Return the page URI for a specific numbered page.
|
String |
getRequestRootURI()
Return the request URI incluiding query parameters but not page control parameters
|
public static int DEFAULT_PAGESIZE
public static final String PAGESIZE_PARAM
public static final String PAGE_PARAM
protected javax.ws.rs.core.UriInfo requestURI
protected int pageSize
protected int pageNumber
public int getOffset()
public int getPageNumber()
public int getPageSize()
public String getAbsoluteRequestURI()
public String getRequestRootURI()
public String getPageURI()
public String getPageURI(int pn)
Copyright © 2017. All rights reserved.