private String buildEncodedUrlQuery(List<HtmlParameter> formDataSet){
  StringBuilder request=new StringBuilder();
  for (  HtmlParameter p : formDataSet) {
    String v;
    try {
      v=URLEncoder.encode(p.getName(),ENCODING_TYPE);
      request.append(v);
      request.append("=");
      v=URLEncoder.encode(p.getValue(),ENCODING_TYPE);
      request.append(v);
    }
 catch (    UnsupportedEncodingException e) {
      log.warn("Error while encoding query for form.",e);
    }
    request.append("&");
  }
  if (request.length() > 0) {
    request.deleteCharAt(request.length() - 1);
  }
  return request.toString();
}

private String buildEncodedUrlQuery ( List < HtmlParameter > formDataSet ) { StringBuilder request = new StringBuilder ( ) ; for ( HtmlParameter p : formDataSet ) { String v ; try { v = URLEncoder . encode ( p . getName ( ) , ENCODING_TYPE ) ; request . append ( v ) ; request . append ( "=" ) ; v = URLEncoder . encode ( p . getValue ( ) , ENCODING_TYPE ) ; request . append ( v ) ; } catch ( UnsupportedEncodingException e ) { log . warn ( "Error while encoding query for form." , e ) ; } request . append ( "&" ) ; } if ( request . length ( ) > 0 ) { request . deleteCharAt ( request . length ( ) - 1 ) ; } return request . toString ( ) ; }
builds the query , encoded with " application / x - www - form - urlencoded " .
