Here you can find the source of parseHttpParamsToHash(String s)
public static Map parseHttpParamsToHash(String s)
//package com.java2s; import java.util.*; public class Main { public static Map parseHttpParamsToHash(String s) { HashMap hashmap = new HashMap(); String as[] = s.split("&"); int i = as.length; for (int j = 0; j < i; j++) { String s1 = as[j];/*from www. java 2 s.c o m*/ if (s1.indexOf("=") > 0) { String as1[] = s1.split("="); String s2 = as1[0]; String s3 = as1[1]; Object obj = hashmap.put(s2, s3); } } return hashmap; } }