01: /*
02: * Copyright 2001 Sun Microsystems, Inc. All rights reserved.
03: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
04: */
05: package com.sun.portal.desktop.context;
06:
07: import javax.servlet.http.HttpServletRequest;
08: import javax.servlet.http.Cookie;
09:
10: public interface SessionContext {
11: public void init(HttpServletRequest req, String portalId);
12:
13: /**
14: * Get a property from the user session.
15: */
16: public String getStringProperty(String name);
17:
18: /**
19: * Store a property to the user session.
20: */
21: public void setStringProperty(String name, String val);
22:
23: public String getSessionID();
24:
25: public String getUserID();
26:
27: public void addSessionListener(SessionListener sl);
28:
29: public void addUserListener(UserListener sl);
30:
31: public String encodeURL(String url);
32:
33: public String getAuthenticationType();
34:
35: /* Properties that are stored as Cookie on client browser.
36: * AuthlessAnonymous user state is managed via such cookie.
37: * Authenticated users use AM/DSAME session to manage user state, returns null in such case.
38: */
39: public Cookie getClientProperties();
40: }
|