code: private void parseParameters(String input) {
          for (String param : input.split("&")) {
              String[] pair = param.split("=");
  
              String name = (pair.length > 0) ? pair[0] : null;
              String value = (pair.length > 1) ? pair[1] : null;
  
              if (name != null) {
                  setParameter(name, value);
              }
          }
      }
docs: Parses a String of HTTP parameters into the internal parameters data
  structure. No input checking or decoding is performed!
  
  @param input A String of HTTP parameters in the form of:
  name1=value1&name2=value2&...