Esempio n. 1
0
 private void putParameter(String name, String value) {
   String[] params = requestParameters.get(name);
   params = params == null ? new String[] {value} : CollectionUtil.append(params, value);
   requestParameters.put(name, params);
 }
Esempio n. 2
0
 // ---------------------------------------------------------------- Private method start
 private void putFile(String name, UploadFile value) {
   UploadFile[] fileUploads = requestFiles.get(name);
   fileUploads =
       fileUploads == null ? new UploadFile[] {value} : CollectionUtil.append(fileUploads, value);
   requestFiles.put(name, fileUploads);
 }