A couple of minor cleanups.
[jsvc.git] / src / dolda / jsvc / j2ee / J2eeRequest.java
index 6b1ba0b..8eb8b90 100644 (file)
@@ -15,7 +15,6 @@ public class J2eeRequest extends ResponseBuffer {
     private String method, path;
     private URL url, context;
     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;
@@ -71,10 +70,6 @@ public class J2eeRequest extends ResponseBuffer {
            path = path.substring(1);
     }
     
-    public Map<Object, Object> props() {
-       return(props);
-    }
-    
     public SocketAddress remoteaddr() {
        try {
            /* Apparently getRemotePort returns -1 when running on Tomcat over AJP. */
@@ -149,14 +144,8 @@ public class J2eeRequest extends ResponseBuffer {
     }
     
     public MultiMap<String, String> params() {
-       if(params == null) {
-           params = Params.urlparams(this);
-           if(method == "POST") {
-               MultiMap<String, String> pp = Params.postparams(this);
-               if(pp != null)
-                   params.putAll(pp);
-           }
-       }
+       if(params == null)
+           params = Params.stdparams(this);
        return(params);
     }