Here you can find the source of getURLParameters(URI uri)
public static Map getURLParameters(URI uri)
//package com.java2s; /*/*from w w w .j av a 2s . c o m*/ * Copyright (c) 2012. betterFORM Project - http://www.betterform.de * Licensed under the terms of BSD License */ import java.net.URI; import java.util.HashMap; import java.util.Map; public class Main { public static Map getURLParameters(URI uri) { if (uri == null) { return null; } String query = uri.getQuery(); if (query == null) { return null; } Map parameters = new HashMap(); String[] pairs = query.split("&"); String[] tokens; for (int index = 0; index < pairs.length; index++) { tokens = pairs[index].split("="); parameters.put(tokens[0], tokens.length > 1 ? tokens[1] : ""); } return parameters; } }