org.linkedin.util-core/src/main/java/org/linkedin/util/url/QueryBuilder.java
private void addQueryToMap(String query)
  {
    String[] params = SS.split(query);
    for(int i = 0; i < params.length; i++)
    {
      String param = params[i];
      if(param.length() == 0)
        continue;

      int idx = param.indexOf('=');
      if(idx == -1)
        addParameterToMap(decode(param), null);
      else
        addParameterToMap(decode(param.substring(0, idx)),
            decode(param.substring(idx + 1)));
    }
  }
private void addQueryToMap(String query)
  {
    String[] params = SS.split(query);
    for(int i = 0; i < params.length; i++)
    {
      String param = params[i];
      if(param.length() == 0)
        continue;

      int idx = param.indexOf('=');
      if(idx == -1)
        addParameterToMap(decode(param), null);
      else
        addParameterToMap(decode(param.substring(0, idx)),
            decode(param.substring(idx + 1)));
    }
  }
private void addQueryToMap ( String query ) { String [ ] params = SS . split ( query ) ; for ( int i = 0 ; i < params . length ; i ++ ) { String param = params [ i ] ; if ( param . length ( ) == 0 ) continue ; int idx = param . indexOf ( ' ' ) ; if ( idx == - 1 ) addParameterToMap ( decode ( param ) , null ) ; else addParameterToMap ( decode ( param . substring ( 0 , idx ) ) , decode ( param . substring ( idx + 1 ) ) ) ; } }
Simply adds the query provided. It is assumed that the query is properly
encoded for url!

@param query the properly url encoded query
Simply adds the query provided . It is assumed that the query is properly encoded for url!