/** * The URL query string of of the next page. * * Note: the query string does not start with a "?" or "&" those need to be * added as appropriate by the caller. */ private String getNextPageURL(BrowseParams params, BrowseInfo info) throws SQLException, UIException { // Don't create a next page link if this is the last page if (info.isLast()) { return null; } Map<String, String> parameters = new HashMap<String, String>(); parameters.putAll(params.getCommonParametersEncoded()); parameters.putAll(params.getControlParameters()); if (info.hasNextPage()) { parameters.put(BrowseParams.OFFSET, encodeForURL(String.valueOf(info.getNextOffset()))); } return super.generateURL(BROWSE_URL_BASE, parameters); }
/** * The URL query string of of the next page. * * Note: the query string does not start with a "?" or "&" those need to be * added as appropriate by the caller. */ private String getNextPageURL(BrowseParams params, BrowseInfo info) throws SQLException, UIException { // Don't create a next page link if this is the last page if (info.isLast()) { return null; } Map<String, String> parameters = new HashMap<String, String>(); parameters.putAll(params.getCommonParameters()); parameters.putAll(params.getControlParameters()); if (info.hasNextPage()) { parameters.put(BrowseParams.OFFSET, encodeForURL(String.valueOf(info.getNextOffset()))); } return super.generateURL(WITHDRAWN_URL_BASE, parameters); }
if (hasNextPage()) { sb.append("offset: ").append(Integer.toString(this.nextOffset)); } else {