Android URL Parse parseHttpParamsToHash(String s)

Here you can find the source of parseHttpParamsToHash(String s)

Description

parse Http Params To Hash

Declaration

public static Map parseHttpParamsToHash(String s) 

Method Source Code

//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;
    }
}

Related

  1. getHost(String url)
  2. getNormalizedURLString(String url)
  3. getOrigin(String url)
  4. getParentUrl(String url)