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); }
// ---------------------------------------------------------------- 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); }