david-PC\david
2018-06-12 cc7f57619fd09f68582b748a3580402717b84c50
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package frame.object.http;
 
import java.util.Enumeration;
 
import javax.servlet.http.HttpServletRequest;
 
import frame.data.DataPool;
 
public class HttpDataPool extends DataPool {
 
    public HttpDataPool() throws Exception {
        
    }
 
    public void load(HttpServletRequest request) throws Exception {
        Enumeration<String> paramNames = request.getParameterNames();
 
        while (paramNames.hasMoreElements()) {
            String paramName = (String) paramNames.nextElement();
            String value = request.getParameter(paramName);
            add(paramName, value);
        }
    }
    
}