public SessionFactoryImpl(HttpServletRequest request, IList <string> supportedEngines, CypherExecutor cypherExecutor) { this._request = request; this._httpSession = request.getSession(true); this._cypherExecutor = cypherExecutor; EnableEngines(supportedEngines); }
public override QuercusHttpSession getSession(bool isCreate) { HttpSession session = _request.getSession(isCreate); if (session == null) { return(null); } return(new QuercusHttpSessionImpl(session)); }
protected override void doGet(HttpServletRequest request, HttpServletResponse response) { response.setContentType("text/plain"); StreamWriter output = response.getWriter(); HttpSession session = request.getSession(true); int? counter = (int?)session.getAttribute("Counter"); if (counter == null) { output.WriteLine("No session"); session.setAttribute("Counter", 1); } else { output.WriteLine("Counter.." + counter); session.setAttribute("Counter", counter + 1); } }
public override HttpSession GetSession(bool create) { return(_HttpServletRequest.getSession(create)); }