public abstract class ExternalContext extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
BASIC_AUTH |
static String |
CLIENT_CERT_AUTH |
static String |
DIGEST_AUTH |
static String |
FORM_AUTH |
| Constructor and Description |
|---|
ExternalContext() |
public static final String BASIC_AUTH
public static final String CLIENT_CERT_AUTH
public static final String DIGEST_AUTH
public static final String FORM_AUTH
public abstract void dispatch(String path) throws IOException
IOExceptionpublic abstract String getAuthType()
public abstract Object getContext()
public abstract Map getInitParameterMap()
public abstract String getRemoteUser()
public abstract Object getRequest()
public String getRequestCharacterEncoding()
public String getRequestContentType()
public abstract String getRequestContextPath()
public abstract Locale getRequestLocale()
public abstract String getRequestPathInfo()
public abstract String getRequestServletPath()
public abstract URL getResource(String path) throws MalformedURLException
MalformedURLExceptionpublic abstract InputStream getResourceAsStream(String path)
public abstract Object getResponse()
public String getResponseContentType()
UnsupportedOperationException by default.public abstract Object getSession(boolean create)
public abstract Principal getUserPrincipal()
public void setRequest(Object request)
UnsupportedOperationException by default.request - public void setRequestCharacterEncoding(String encoding) throws UnsupportedEncodingException
UnsupportedOperationException by default.encoding - UnsupportedEncodingExceptionpublic void setResponse(Object response)
UnsupportedOperationException by default.response - public void setResponseCharacterEncoding(String encoding)
UnsupportedOperationException by default.encoding - public String getResponseCharacterEncoding()
public abstract boolean isUserInRole(String role)
public abstract void log(String message)
public abstract void redirect(String url) throws IOException
IOExceptionCopyright © 2013 Apache Software Foundation. All Rights Reserved.