1 package dolda.jsvc.j2ee;
4 import dolda.jsvc.util.*;
5 import javax.servlet.*;
9 public abstract class J2eeContext implements ServerContext {
10 private final ServletConfig sc;
11 private final long ctime;
12 protected final Properties config;
14 protected J2eeContext(ServletConfig sc) {
16 this.ctime = System.currentTimeMillis();
17 config = new Properties();
20 static J2eeContext create(ServletConfig sc) {
21 if(TomcatContext.tomcatp(sc))
22 return(new TomcatContext(sc));
23 return(new StandardContext(sc));
26 public long starttime() {
30 public String config(String key) {
31 return((String)config.get(key));
34 public ServletConfig j2eeconfig() {