question: 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 ; }
target:  Creates the request URL mostly for a get request