Dolda2000 GitWeb
/
jsvc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Made the server context a more useful concept.
[jsvc.git]
/
src
/
dolda
/
jsvc
/
j2ee
/
J2eeContext.java
diff --git
a/src/dolda/jsvc/j2ee/J2eeContext.java
b/src/dolda/jsvc/j2ee/J2eeContext.java
index
696e32b
..
5409b8c
100644
(file)
--- 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;
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.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() {
}
public long starttime() {
- return(
(Long)cfg.getServletContext().getAttribute("jsvc.starttime")
);
+ return(
ctime
);
}
}
}
}