private HttpServletResponse resp;
private String method, path;
private URL url;
- private Map<?, ?> props = new HashMap();
+ private MultiMap<String, String> params = null;
+ private Map<Object, Object> props = new HashMap<Object, Object>();
public J2eeRequest(ServletConfig cfg, HttpServletRequest req, HttpServletResponse resp) {
this.cfg = cfg;
path = path.substring(1);
}
- public Map<?, ?> props() {
+ public Map<Object, Object> props() {
return(props);
}
}
public MultiMap<String, String> params() {
- return(null);
+ if(params == null) {
+ params = Params.urlparams(this);
+ if(method == "POST") {
+ MultiMap<String, String> pp = Params.postparams(this);
+ if(pp != null)
+ params.putAll(pp);
+ }
+ }
+ return(params);
}
protected void backflush() {