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 java.util.Locale;
08: import java.util.Set;
09:
10: import javax.servlet.http.HttpServletRequest;
11:
12: interface ClientContext {
13: public static short AUTHLESS_STATE_SERVER = 1;
14: public static short AUTHLESS_STATE_CLIENT = 2;
15: public static short AUTHLESS_STATE_NONE = 3;
16:
17: public static short COOKIE_SUPPORT_FALSE = 0;
18: public static short COOKIE_SUPPORT_TRUE = 1;
19: public static short COOKIE_SUPPORT_DETECT = 2;
20:
21: public void init();
22:
23: public String getClientType(HttpServletRequest req);
24:
25: public String getDefaultClientType();
26:
27: public String getContentType(String clientType);
28:
29: public String getClientPath(String clientType);
30:
31: public String getClientTypeProperty(String clientType, String key);
32:
33: public Set getClientTypeProperties(String clientType, String key);
34:
35: public String getCharset(String clientType, Locale locale);
36:
37: public short getCookieSupport(String clientType);
38:
39: public short getAuthlessState(String clientType);
40:
41: public String getEncoderClassName(String clientType);
42: }
|