org.jboss.aerogear.controller.router.rest.pagination
Class RequestPathParser
java.lang.Object
org.jboss.aerogear.controller.router.rest.pagination.RequestPathParser
public class RequestPathParser
- extends Object
RequestPathParser is able to replace, or add query parameters related to pagination.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pgInfo
private final PaginationInfo pgInfo
requestPath
private final String requestPath
RequestPathParser
public RequestPathParser(PaginationInfo paginationInfo,
String requestPath)
replace
public String replace(int offset,
int limit)
- Replaces the offset and limit for the current request.
- Parameters:
offset - the new offset value.limit - the new limit value.
- Returns:
String the updated request url, containing the full url with query string.
replaceParam
private String replaceParam(String paramName,
String paramValue,
String path)
paramMissingFromQueryPath
private boolean paramMissingFromQueryPath(int idx)
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.