protected int parsePageNumber(String uri){
  if (uri == null || uri.length() == 0)   return -1;
  final URI parsed;
  try {
    parsed=new URI(uri);
  }
 catch (  URISyntaxException e) {
    return -1;
  }
  final String param=UrlUtils.getParam(parsed,PARAM_PAGE);
  if (param == null || param.length() == 0)   return -1;
  try {
    return Integer.parseInt(param);
  }
 catch (  NumberFormatException nfe) {
    return -1;
  }
}

protected int parsePageNumber ( String uri ) { if ( uri == null || uri . length ( ) == 0 ) return - 1 ; final URI parsed ; try { parsed = new URI ( uri ) ; } catch ( URISyntaxException e ) { return - 1 ; } final String param = UrlUtils . getParam ( parsed , PARAM_PAGE ) ; if ( param == null || param . length ( ) == 0 ) return - 1 ; try { return Integer . parseInt ( param ) ; } catch ( NumberFormatException nfe ) { return - 1 ; } }
parse page number from uri
