org.apache.myfaces.context.servlet
Class ServletExternalContextImpl
java.lang.Object
javax.faces.context.ExternalContext
org.apache.myfaces.context.servlet.ServletExternalContextImpl
- All Implemented Interfaces:
- ReleaseableExternalContext
public class ServletExternalContextImpl
- extends ExternalContext
- implements ReleaseableExternalContext
JSF 1.0 PRD2, 6.1.1
- Version:
- $Revision: 775389 $ $Date: 2009-05-15 18:23:28 -0500 (Fri, 15 May 2009) $
Revision 1.11 Sylvain Vieujot
Forward the message when an exception is thrown in dispatch
- Author:
- Manfred Geiler (latest modification by $Author: lu4242 $), Anton Koinov
Constructor Summary |
ServletExternalContextImpl(javax.servlet.ServletContext servletContext,
javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServletExternalContextImpl
public ServletExternalContextImpl(javax.servlet.ServletContext servletContext,
javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse)
release
public void release()
- Description copied from interface:
ReleaseableExternalContext
- Release resources that the ExternalContext is holding onto.
- Specified by:
release
in interface ReleaseableExternalContext
getSession
public Object getSession(boolean create)
- Specified by:
getSession
in class ExternalContext
getContext
public Object getContext()
- Specified by:
getContext
in class ExternalContext
getRequest
public Object getRequest()
- Specified by:
getRequest
in class ExternalContext
getResponse
public Object getResponse()
- Specified by:
getResponse
in class ExternalContext
setResponse
public void setResponse(Object response)
getApplicationMap
public Map getApplicationMap()
- Specified by:
getApplicationMap
in class ExternalContext
getSessionMap
public Map getSessionMap()
- Specified by:
getSessionMap
in class ExternalContext
getRequestMap
public Map getRequestMap()
- Specified by:
getRequestMap
in class ExternalContext
getRequestParameterMap
public Map getRequestParameterMap()
- Specified by:
getRequestParameterMap
in class ExternalContext
getRequestParameterValuesMap
public Map getRequestParameterValuesMap()
- Specified by:
getRequestParameterValuesMap
in class ExternalContext
getRequestParameterNames
public Iterator getRequestParameterNames()
- Specified by:
getRequestParameterNames
in class ExternalContext
getRequestHeaderMap
public Map getRequestHeaderMap()
- Specified by:
getRequestHeaderMap
in class ExternalContext
getRequestHeaderValuesMap
public Map getRequestHeaderValuesMap()
- Specified by:
getRequestHeaderValuesMap
in class ExternalContext
getRequestCookieMap
public Map getRequestCookieMap()
- Specified by:
getRequestCookieMap
in class ExternalContext
getRequestLocale
public Locale getRequestLocale()
- Specified by:
getRequestLocale
in class ExternalContext
getRequestPathInfo
public String getRequestPathInfo()
- Specified by:
getRequestPathInfo
in class ExternalContext
getRequestContextPath
public String getRequestContextPath()
- Specified by:
getRequestContextPath
in class ExternalContext
getInitParameter
public String getInitParameter(String s)
- Specified by:
getInitParameter
in class ExternalContext
getInitParameterMap
public Map getInitParameterMap()
- Specified by:
getInitParameterMap
in class ExternalContext
getResourcePaths
public Set getResourcePaths(String s)
- Specified by:
getResourcePaths
in class ExternalContext
getResourceAsStream
public InputStream getResourceAsStream(String s)
- Specified by:
getResourceAsStream
in class ExternalContext
encodeActionURL
public String encodeActionURL(String s)
- Specified by:
encodeActionURL
in class ExternalContext
encodeResourceURL
public String encodeResourceURL(String s)
- Specified by:
encodeResourceURL
in class ExternalContext
encodeNamespace
public String encodeNamespace(String s)
- Specified by:
encodeNamespace
in class ExternalContext
dispatch
public void dispatch(String requestURI)
throws IOException,
FacesException
- Specified by:
dispatch
in class ExternalContext
- Throws:
IOException
FacesException
getRequestServletPath
public String getRequestServletPath()
- Specified by:
getRequestServletPath
in class ExternalContext
getAuthType
public String getAuthType()
- Specified by:
getAuthType
in class ExternalContext
getRemoteUser
public String getRemoteUser()
- Specified by:
getRemoteUser
in class ExternalContext
isUserInRole
public boolean isUserInRole(String role)
- Specified by:
isUserInRole
in class ExternalContext
getUserPrincipal
public Principal getUserPrincipal()
- Specified by:
getUserPrincipal
in class ExternalContext
log
public void log(String message)
- Specified by:
log
in class ExternalContext
log
public void log(String message,
Throwable t)
- Specified by:
log
in class ExternalContext
redirect
public void redirect(String url)
throws IOException
- Specified by:
redirect
in class ExternalContext
- Throws:
IOException
getRequestLocales
public Iterator getRequestLocales()
- Specified by:
getRequestLocales
in class ExternalContext
getResource
public URL getResource(String s)
throws MalformedURLException
- Specified by:
getResource
in class ExternalContext
- Throws:
MalformedURLException
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.