01: /*
02: * All content copyright (c) 2003-2007 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package com.terracotta.session;
06:
07: import com.terracotta.session.util.SessionCookieWriter;
08:
09: import javax.servlet.http.HttpServletRequest;
10: import javax.servlet.http.HttpServletResponse;
11:
12: public interface SessionManager {
13:
14: SessionCookieWriter getCookieWriter();
15:
16: void postprocess(TerracottaRequest req);
17:
18: TerracottaRequest preprocess(HttpServletRequest valveReq,
19: HttpServletResponse valveRes);
20:
21: Session getSession(SessionId requestedSessionId,
22: HttpServletRequest req, HttpServletResponse res);
23:
24: Session getSessionIfExists(SessionId requestedSessionId,
25: HttpServletRequest req, HttpServletResponse res);
26:
27: TerracottaResponse createResponse(TerracottaRequest req,
28: HttpServletResponse response);
29:
30: void remove(Session data, boolean unlock);
31:
32: }
|