1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package javax.faces.context; |
17 | |
|
18 | |
import java.io.IOException; |
19 | |
import java.io.InputStream; |
20 | |
import java.net.MalformedURLException; |
21 | |
import java.net.URL; |
22 | |
import java.security.Principal; |
23 | |
import java.util.Iterator; |
24 | |
import java.util.Locale; |
25 | |
import java.util.Map; |
26 | |
import java.util.Set; |
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | 1788 | public abstract class ExternalContext { |
32 | |
|
33 | |
public static final String BASIC_AUTH = "BASIC"; |
34 | |
|
35 | |
public static final String CLIENT_CERT_AUTH = "CLIENT_CERT"; |
36 | |
|
37 | |
public static final String DIGEST_AUTH = "DIGEST"; |
38 | |
|
39 | |
public static final String FORM_AUTH = "FORM"; |
40 | |
|
41 | |
public abstract void dispatch(String path) throws IOException; |
42 | |
|
43 | |
public abstract String encodeActionURL(String url); |
44 | |
|
45 | |
public abstract String encodeNamespace(String name); |
46 | |
|
47 | |
public abstract String encodeResourceURL(String url); |
48 | |
|
49 | |
public abstract Map getApplicationMap(); |
50 | |
|
51 | |
public abstract String getAuthType(); |
52 | |
|
53 | |
public abstract Object getContext(); |
54 | |
|
55 | |
public abstract String getInitParameter(String name); |
56 | |
|
57 | |
public abstract Map getInitParameterMap(); |
58 | |
|
59 | |
public abstract String getRemoteUser(); |
60 | |
|
61 | |
public abstract Object getRequest(); |
62 | |
|
63 | |
public abstract String getRequestContextPath(); |
64 | |
|
65 | |
public abstract Map getRequestCookieMap(); |
66 | |
|
67 | |
public abstract Map getRequestHeaderMap(); |
68 | |
|
69 | |
public abstract Map getRequestHeaderValuesMap(); |
70 | |
|
71 | |
public abstract Locale getRequestLocale(); |
72 | |
|
73 | |
public abstract Iterator getRequestLocales(); |
74 | |
|
75 | |
public abstract Map getRequestMap(); |
76 | |
|
77 | |
public abstract Map getRequestParameterMap(); |
78 | |
|
79 | |
public abstract Iterator getRequestParameterNames(); |
80 | |
|
81 | |
public abstract Map getRequestParameterValuesMap(); |
82 | |
|
83 | |
public abstract String getRequestPathInfo(); |
84 | |
|
85 | |
public abstract String getRequestServletPath(); |
86 | |
|
87 | |
public abstract URL getResource(String path) throws MalformedURLException; |
88 | |
|
89 | |
public abstract InputStream getResourceAsStream(String path); |
90 | |
|
91 | |
public abstract Set getResourcePaths(String path); |
92 | |
|
93 | |
public abstract Object getResponse(); |
94 | |
|
95 | |
public abstract Object getSession(boolean create); |
96 | |
|
97 | |
public abstract Map getSessionMap(); |
98 | |
|
99 | |
public abstract Principal getUserPrincipal(); |
100 | |
|
101 | |
public abstract boolean isUserInRole(String role); |
102 | |
|
103 | |
public abstract void log(String message); |
104 | |
|
105 | |
public abstract void log(String message, Throwable exception); |
106 | |
|
107 | |
public abstract void redirect(String url) throws IOException; |
108 | |
} |