public static final String PAGE_SIZE = "pageSize";
protected PageInfo getPageInfo(MultivaluedMap<String, String> input) throws PageInfoParseException
{
PageInfo result = null;
if (input != null)
{
String offset = input.getFirst(OFFSET);
String pageSize = input.getFirst(PAGE_SIZE);
int offsetValue = convertInt(offset, "Paging info contains the invalid offset: \"%s\"", offset);
int pageSizeValue = convertInt(pageSize, "Paging info contains the invalid page size: \"%s\"", pageSize);
result = new PageInfo(offsetValue, pageSizeValue);
}
return result;
}