private RequestParameter[] httpServlet2Parameters(HttpServletRequest request) {
System.out.println("[Executor] httpServlet2Parameters start.");
ArrayList<RequestParameter> list = new ArrayList<RequestParameter>();
String parName = null;
RequestParameter result[] = new RequestParameter[0];
RequestParameter tmpParameter = null;
for (Enumeration e = request.getParameterNames(); e.hasMoreElements(); ) {
parName = (String) e.nextElement();
tmpParameter = new RequestParameter();
tmpParameter.setName(parName);
tmpParameter.setValue((String) request.getParameter(parName));
list.add(tmpParameter);
}
return list.toArray(result);