Here you can find the source of getQueryParameter(final String param, URI data)
private static String getQueryParameter(final String param, URI data)
//package com.java2s; //License from project: Open Source License import java.net.URI; public class Main { private static String getQueryParameter(final String param, URI data) { final String query = data.getQuery(); String value = null;//from w ww . j a v a2s . c o m if (query != null && query.contains(param)) { String[] params = query.split("&"); for (String p : params) { if (p.contains(param)) { value = p.substring(p.indexOf("=") + 1, p.length()); break; } } } return value; } }