protected final int getPageNr ( final String parameters ) { final String cleanedString = parameters ; String pageNrValue ; if ( cleanedString != null && cleanedString . contains ( "[" ) && cleanedString . contains ( "]" ) ) { pageNrValue = cleanedString . substring ( cleanedString . indexOf ( ' ' ) + 1 , cleanedString . lastIndexOf ( ' ' ) ) ; } else { pageNrValue = "" ; } int pageNr = 1 ; if ( pageNrValue . length ( ) > 0 && ! pageNrValue . contains ( "/" ) ) { pageNr = Integer . parseInt ( pageNrValue ) ; } return pageNr ; }
Gets the page nr .