Here you can find the source of getQueryString(String url)
protected static String getQueryString(String url)
//package com.java2s; // Disable re-asking for license agreement (Firefox 3) import java.net.MalformedURLException; import java.net.URL; public class Main { protected static String getQueryString(String url) { final String query; try {/*from w w w.j a v a2s . c o m*/ query = new URL(url).getQuery(); return query == null ? "" : query; } catch (MalformedURLException e) { throw new RuntimeException(e); } } }