01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.terracotta.session.util;
05:
06: import com.terracotta.session.SessionId;
07:
08: import javax.servlet.http.Cookie;
09: import javax.servlet.http.HttpServletRequest;
10: import javax.servlet.http.HttpServletResponse;
11:
12: public interface SessionCookieWriter {
13:
14: Cookie writeCookie(HttpServletRequest req, HttpServletResponse res,
15: SessionId id);
16:
17: String encodeURL(String url, HttpServletRequest req);
18:
19: String encodeRedirectURL(String url, HttpServletRequest req);
20: }
|