code: public static Map<String, Object> parseData(String data) {
  		Map<String, Object> ret = new HashMap<String, Object>();
  		String[] split = data.split("&");
  		for (String s : split) {
  			int idx = s.indexOf('=');
  			try {
  				if (idx != -1) {
  					ret.put(URLDecoder.decode(s.substring(0, idx), "UTF-8"), URLDecoder.decode(s.substring(idx + 1), "UTF-8"));
  				} else {
  					ret.put(URLDecoder.decode(s, "UTF-8"), "true");
  				}
  			} catch (UnsupportedEncodingException e) {
  				// Why.
  			}
  		}
  		return ret;
  	}
docs: Parse POST data or GET data from the request URI
  
  @param data The data string
  @return A map containing the values