Class ServletExternalContextImplBase
- java.lang.Object
-
- jakarta.faces.context.ExternalContext
-
- org.apache.myfaces.context.servlet.ServletExternalContextImplBase
-
- Direct Known Subclasses:
ServletExternalContextImpl
,StartupServletExternalContextImpl
public abstract class ServletExternalContextImplBase extends ExternalContext
Provides a base implementation of the ExternalContext for Servlet environments. This impl provides all methods which only rely on the ServletContext and thus are also provided at startup and shutdown.- Version:
- $Revision$ $Date$
- Author:
- Jakob Korherr (latest modification by $Author$)
-
-
Field Summary
-
Fields inherited from class jakarta.faces.context.ExternalContext
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
-
-
Constructor Summary
Constructors Constructor Description ServletExternalContextImplBase(jakarta.servlet.ServletContext servletContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getApplicationContextPath()
Map<String,Object>
getApplicationMap()
ClientWindow
getClientWindow()
Object
getContext()
String
getContextName()
String
getInitParameter(String name)
Map<String,String>
getInitParameterMap()
String
getMimeType(String file)
String
getRealPath(String path)
URL
getResource(String path)
InputStream
getResourceAsStream(String path)
Set<String>
getResourcePaths(String path)
void
log(String message)
void
log(String message, Throwable exception)
void
release()
void
setClientWindow(ClientWindow clientWindow)
-
Methods inherited from class jakarta.faces.context.ExternalContext
addResponseCookie, addResponseHeader, dispatch, encodeActionURL, encodeBookmarkableURL, encodeNamespace, encodePartialActionURL, encodeRedirectURL, encodeResourceURL, encodeWebsocketURL, getAuthType, getFlash, getRemoteUser, getRequest, getRequestCharacterEncoding, getRequestContentLength, getRequestContentType, getRequestContextPath, getRequestCookieMap, getRequestHeaderMap, getRequestHeaderValuesMap, getRequestLocale, getRequestLocales, getRequestMap, getRequestParameterMap, getRequestParameterNames, getRequestParameterValuesMap, getRequestPathInfo, getRequestScheme, getRequestServerName, getRequestServerPort, getRequestServletPath, getResponse, getResponseBufferSize, getResponseCharacterEncoding, getResponseContentType, getResponseOutputStream, getResponseOutputWriter, getSession, getSessionId, getSessionMap, getSessionMaxInactiveInterval, getUserPrincipal, invalidateSession, isResponseCommitted, isSecure, isUserInRole, redirect, responseFlushBuffer, responseReset, responseSendError, setRequest, setRequestCharacterEncoding, setResponse, setResponseBufferSize, setResponseCharacterEncoding, setResponseContentLength, setResponseContentType, setResponseHeader, setResponseStatus, setSessionMaxInactiveInterval
-
-
-
-
Method Detail
-
release
public void release()
- Specified by:
release
in classExternalContext
-
getApplicationMap
public Map<String,Object> getApplicationMap()
- Specified by:
getApplicationMap
in classExternalContext
-
getMimeType
public String getMimeType(String file)
- Overrides:
getMimeType
in classExternalContext
-
getContext
public Object getContext()
- Specified by:
getContext
in classExternalContext
-
getContextName
public String getContextName()
- Overrides:
getContextName
in classExternalContext
-
getInitParameter
public String getInitParameter(String name)
- Specified by:
getInitParameter
in classExternalContext
-
getInitParameterMap
public Map<String,String> getInitParameterMap()
- Specified by:
getInitParameterMap
in classExternalContext
-
getResource
public URL getResource(String path) throws MalformedURLException
- Specified by:
getResource
in classExternalContext
- Throws:
MalformedURLException
-
getResourceAsStream
public InputStream getResourceAsStream(String path)
- Specified by:
getResourceAsStream
in classExternalContext
-
getResourcePaths
public Set<String> getResourcePaths(String path)
- Specified by:
getResourcePaths
in classExternalContext
-
log
public void log(String message)
- Specified by:
log
in classExternalContext
-
log
public void log(String message, Throwable exception)
- Specified by:
log
in classExternalContext
-
getRealPath
public String getRealPath(String path)
- Overrides:
getRealPath
in classExternalContext
-
getClientWindow
public ClientWindow getClientWindow()
- Overrides:
getClientWindow
in classExternalContext
-
setClientWindow
public void setClientWindow(ClientWindow clientWindow)
- Overrides:
setClientWindow
in classExternalContext
-
getApplicationContextPath
public String getApplicationContextPath()
- Overrides:
getApplicationContextPath
in classExternalContext
-
-