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