Here you can find the source of httpGetRequestParseParams( String paramString)
public static HashMap<String, String> httpGetRequestParseParams( String paramString) throws UnsupportedEncodingException
//package com.java2s; import java.net.URLDecoder; import java.util.HashMap; import java.io.UnsupportedEncodingException; public class Main { private static final String REQUEST_ENCODING_DEFAULT = "UTF-8"; public static HashMap<String, String> httpGetRequestParseParams( String paramString) throws UnsupportedEncodingException { HashMap<String, String> result = new HashMap<String, String>(); paramString = paramString.trim(); if (paramString.length() > 0) { String[] params = paramString.replace('+', ' ').split("&"); for (String param : params) { int index = param.indexOf('='); if (index >= 0) { String name = param.substring(0, index); String value = param.substring(index + 1); result.put(URLDecoder.decode(name, REQUEST_ENCODING_DEFAULT), URLDecoder.decode( value, REQUEST_ENCODING_DEFAULT)); } else { result.put(URLDecoder.decode(param, REQUEST_ENCODING_DEFAULT), ""); }/*from w w w. j ava 2 s . com*/ } } return result; } }