From: Fredrik Tolf Date: Fri, 16 Oct 2009 04:38:28 +0000 (+0200) Subject: Removed the props stuff from the request. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=ed8f7296bfb39fbd66b79a113d4a72c6ade71fc0;p=jsvc.git Removed the props stuff from the request. They turned out to be unnecessary, and the ContextParam class provides a much nicer mechanism anyway, so -- remove cruft early! --- diff --git a/src/dolda/jsvc/Request.java b/src/dolda/jsvc/Request.java index c0210e6..af14293 100644 --- a/src/dolda/jsvc/Request.java +++ b/src/dolda/jsvc/Request.java @@ -22,7 +22,6 @@ public interface Request { public MultiMap outheaders(); /* Misc. */ - public Map props(); public ServerContext ctx(); public SocketAddress remoteaddr(); public SocketAddress localaddr(); diff --git a/src/dolda/jsvc/RequestWrap.java b/src/dolda/jsvc/RequestWrap.java index d024622..8c711bb 100644 --- a/src/dolda/jsvc/RequestWrap.java +++ b/src/dolda/jsvc/RequestWrap.java @@ -23,7 +23,6 @@ public class RequestWrap implements Request { public void status(int code) {bk.status(code);} public void status(int code, String message) {bk.status(code, message);} public MultiMap outheaders() {return(bk.outheaders());} - public Map props() {return(bk.props());} public ServerContext ctx() {return(bk.ctx());} public SocketAddress remoteaddr() {return(bk.remoteaddr());} public SocketAddress localaddr() {return(bk.localaddr());} diff --git a/src/dolda/jsvc/j2ee/J2eeRequest.java b/src/dolda/jsvc/j2ee/J2eeRequest.java index 6b1ba0b..466b81c 100644 --- a/src/dolda/jsvc/j2ee/J2eeRequest.java +++ b/src/dolda/jsvc/j2ee/J2eeRequest.java @@ -15,7 +15,6 @@ public class J2eeRequest extends ResponseBuffer { private String method, path; private URL url, context; private MultiMap params = null; - private Map props = new HashMap(); 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 props() { - return(props); - } - public SocketAddress remoteaddr() { try { /* Apparently getRemotePort returns -1 when running on Tomcat over AJP. */