public interface ServerContext {
public String rootpath();
+ public long starttime();
}
public String rootpath() {
return(req.getContextPath());
}
+
+ public long starttime() {
+ return((Long)cfg.getServletContext().getAttribute("jsvc.starttime"));
+ }
}
} catch(InvocationTargetException e) {
throw(new ServletException("JSvc bootstrapper failed", e));
}
+ ServletContext ctx = getServletContext();
+ ctx.setAttribute("jsvc.starttime", System.currentTimeMillis());
}
public void destroy() {
out.println("<h1>Barda</h1>");
out.println("Bardslen.");
out.println(req.inheaders());
+ out.println(req.ctx().starttime());
out.println("</body>");
out.println("</html>");
out.flush();