Here you can find the source of parseResponseParams(String body)
public static HashMap<String, String> parseResponseParams(String body) throws Exception
//package com.java2s; //License from project: Open Source License import java.net.*; import java.util.HashMap; public class Main { public static HashMap<String, String> parseResponseParams(String body) throws Exception { HashMap<String, String> results = new HashMap<String, String>(); for (String keyValuePair : body.split("&")) { String[] kvp = keyValuePair.split("="); results.put(kvp[0], URLDecoder.decode(kvp[1], "UTF-8")); }/*from w w w . j a va 2s . c o m*/ return results; } }