コード例 #1
0
 protected String getParameterMarkup(String name, Object value) {
   StringBuffer sb = new StringBuffer();
   try {
     HTTPSettings webSettings = HTTPSettings.lookup();
     sb.append(URLEncoder.encode(name, webSettings.getEncoding()))
         .append("=")
         .append(URLEncoder.encode(String.valueOf(value), webSettings.getEncoding()));
   } catch (UnsupportedEncodingException e) {
     log.error("Error: ", e);
   }
   return sb.toString();
 }
コード例 #2
0
 protected String getEncoding() {
   HTTPSettings fr = HTTPSettings.lookup();
   return fr.getEncoding();
 }