protected String createRequestURL(){
  if (!post && requestArguments != null) {
    StringBuilder b=new StringBuilder(url);
    Enumeration e=requestArguments.keys();
    if (e.hasMoreElements()) {
      b.append("?");
    }
    while (e.hasMoreElements()) {
      String key=(String)e.nextElement();
      Object requestVal=requestArguments.get(key);
      if (requestVal instanceof String) {
        String value=(String)requestVal;
        b.append(key);
        b.append("=");
        b.append(value);
        if (e.hasMoreElements()) {
          b.append("&");
        }
        continue;
      }
      String[] val=(String[])requestVal;
      int vlen=val.length;
      for (int iter=0; iter < vlen - 1; iter++) {
        b.append(key);
        b.append("=");
        b.append(val[iter]);
        b.append("&");
      }
      b.append(key);
      b.append("=");
      b.append(val[vlen - 1]);
      if (e.hasMoreElements()) {
        b.append("&");
      }
    }
    return b.toString();
  }
  return url;
}

protected String createRequestURL ( ) { if ( ! post && requestArguments != null ) { StringBuilder b = new StringBuilder ( url ) ; Enumeration e = requestArguments . keys ( ) ; if ( e . hasMoreElements ( ) ) { b . append ( "?" ) ; } while ( e . hasMoreElements ( ) ) { String key = ( String ) e . nextElement ( ) ; Object requestVal = requestArguments . get ( key ) ; if ( requestVal instanceof String ) { String value = ( String ) requestVal ; b . append ( key ) ; b . append ( "=" ) ; b . append ( value ) ; if ( e . hasMoreElements ( ) ) { b . append ( "&" ) ; } continue ; } String [ ] val = ( String [ ] ) requestVal ; int vlen = val . length ; for ( int iter = 0 ; iter < vlen - 1 ; iter ++ ) { b . append ( key ) ; b . append ( "=" ) ; b . append ( val [ iter ] ) ; b . append ( "&" ) ; } b . append ( key ) ; b . append ( "=" ) ; b . append ( val [ vlen - 1 ] ) ; if ( e . hasMoreElements ( ) ) { b . append ( "&" ) ; } } return b . toString ( ) ; } return url ; }
creates the request url mostly for a get request
