public static String extractQuery ( String url ) { if ( url != null ) { int index = url . indexOf ( ' ' ) ; if ( index >= 0 ) { url = url . substring ( index + 1 ) ; } } return url ; }
Get the query string portion of the given URL . If no query string separator character ? can be found return the string unchanged .