X-Git-Url: http://dolda2000.com/gitweb/?p=jsvc.git;a=blobdiff_plain;f=src%2Fdolda%2Fjsvc%2Fj2ee%2FJ2eeContext.java;h=5409b8c066e18c5d372e99c1e0b3677538ce9a2b;hp=696e32b939e88f83877c139d84582a4e6b58ddbb;hb=4b8346e1aad3c58196f8d4dadf9da6726f66f5f4;hpb=d7bc1a7a5f8c82911f7504903cfbfd956b216022 diff --git a/src/dolda/jsvc/j2ee/J2eeContext.java b/src/dolda/jsvc/j2ee/J2eeContext.java index 696e32b..5409b8c 100644 --- a/src/dolda/jsvc/j2ee/J2eeContext.java +++ b/src/dolda/jsvc/j2ee/J2eeContext.java @@ -7,20 +7,14 @@ import javax.servlet.http.*; public class J2eeContext implements ServerContext { private ServletConfig cfg; - private HttpServletRequest req; - private HttpServletResponse resp; + private long ctime; - J2eeContext(ServletConfig cfg, HttpServletRequest req, HttpServletResponse resp) { + J2eeContext(ServletConfig cfg) { this.cfg = cfg; - this.req = req; - this.resp = resp; - } - - public String rootpath() { - return("/" + Misc.stripslashes(req.getContextPath(), true, true)); + this.ctime = System.currentTimeMillis(); } public long starttime() { - return((Long)cfg.getServletContext().getAttribute("jsvc.starttime")); + return(ctime); } }