org.apache.myfaces.webapp.filter.portlet
Class PortletExternalContextWrapper
java.lang.Object
   javax.faces.context.ExternalContext
javax.faces.context.ExternalContext
       org.apache.myfaces.webapp.filter.portlet.PortletExternalContextWrapper
org.apache.myfaces.webapp.filter.portlet.PortletExternalContextWrapper
- public class PortletExternalContextWrapper 
- extends javax.faces.context.ExternalContext
This class encapsulate the ExternalContext given, adding support for
 inputFileUpload (necessary when this is encapsulated with 
 MultipartRequestWrapper). For make available the parameters map on a
 multipart content request, it is necessary to encapsulate the original
 request with MultipartRequestWrapper, but the original ExternalContext
 is tied with the original request so we need to do this wrapper using
 the delegate pattern starting with TomahawkFacesContextFactory. 
 
 NOTE: This class should is used(instantiated) only by 
 TomahawkFacesContextWrapper. By that reason, it could change
 in the future.
 
- Since:
- 1.1.7
- Author:
- Martin Marinschek
 
| Fields inherited from class javax.faces.context.ExternalContext | 
| BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH | 
 
 
 
| Methods inherited from class javax.faces.context.ExternalContext | 
| getRequestContentType | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
PortletExternalContextWrapper
public PortletExternalContextWrapper(javax.faces.context.ExternalContext delegate,
                                     Object request,
                                     Object response,
                                     boolean multipartContent)
dispatch
public void dispatch(String path)
              throws IOException
- 
- Specified by:
- dispatchin class- javax.faces.context.ExternalContext
 
- 
- Throws:
- IOException
 
encodeActionURL
public String encodeActionURL(String url)
- 
- Specified by:
- encodeActionURLin class- javax.faces.context.ExternalContext
 
- 
 
encodeNamespace
public String encodeNamespace(String name)
- 
- Specified by:
- encodeNamespacein class- javax.faces.context.ExternalContext
 
- 
 
encodeResourceURL
public String encodeResourceURL(String url)
- 
- Specified by:
- encodeResourceURLin class- javax.faces.context.ExternalContext
 
- 
 
getApplicationMap
public Map getApplicationMap()
- 
- Specified by:
- getApplicationMapin class- javax.faces.context.ExternalContext
 
- 
 
getAuthType
public String getAuthType()
- 
- Specified by:
- getAuthTypein class- javax.faces.context.ExternalContext
 
- 
 
getContext
public Object getContext()
- 
- Specified by:
- getContextin class- javax.faces.context.ExternalContext
 
- 
 
getInitParameter
public String getInitParameter(String name)
- 
- Specified by:
- getInitParameterin class- javax.faces.context.ExternalContext
 
- 
 
getInitParameterMap
public Map getInitParameterMap()
- 
- Specified by:
- getInitParameterMapin class- javax.faces.context.ExternalContext
 
- 
 
getRemoteUser
public String getRemoteUser()
- 
- Specified by:
- getRemoteUserin class- javax.faces.context.ExternalContext
 
- 
 
getRequest
public Object getRequest()
- 
- Specified by:
- getRequestin class- javax.faces.context.ExternalContext
 
- 
 
getRequestContextPath
public String getRequestContextPath()
- 
- Specified by:
- getRequestContextPathin class- javax.faces.context.ExternalContext
 
- 
 
getRequestCookieMap
public Map getRequestCookieMap()
- 
- Specified by:
- getRequestCookieMapin class- javax.faces.context.ExternalContext
 
- 
 
getRequestHeaderMap
public Map getRequestHeaderMap()
- 
- Specified by:
- getRequestHeaderMapin class- javax.faces.context.ExternalContext
 
- 
 
getRequestHeaderValuesMap
public Map getRequestHeaderValuesMap()
- 
- Specified by:
- getRequestHeaderValuesMapin class- javax.faces.context.ExternalContext
 
- 
 
getRequestLocale
public Locale getRequestLocale()
- 
- Specified by:
- getRequestLocalein class- javax.faces.context.ExternalContext
 
- 
 
getRequestLocales
public Iterator getRequestLocales()
- 
- Specified by:
- getRequestLocalesin class- javax.faces.context.ExternalContext
 
- 
 
getRequestMap
public Map getRequestMap()
- 
- Specified by:
- getRequestMapin class- javax.faces.context.ExternalContext
 
- 
 
getRequestParameterMap
public Map getRequestParameterMap()
- 
- Specified by:
- getRequestParameterMapin class- javax.faces.context.ExternalContext
 
- 
 
getRequestParameterNames
public Iterator getRequestParameterNames()
- 
- Specified by:
- getRequestParameterNamesin class- javax.faces.context.ExternalContext
 
- 
 
getRequestParameterValuesMap
public Map getRequestParameterValuesMap()
- 
- Specified by:
- getRequestParameterValuesMapin class- javax.faces.context.ExternalContext
 
- 
 
getRequestPathInfo
public String getRequestPathInfo()
- 
- Specified by:
- getRequestPathInfoin class- javax.faces.context.ExternalContext
 
- 
 
getRequestServletPath
public String getRequestServletPath()
- 
- Specified by:
- getRequestServletPathin class- javax.faces.context.ExternalContext
 
- 
 
getResource
public URL getResource(String path)
                throws MalformedURLException
- 
- Specified by:
- getResourcein class- javax.faces.context.ExternalContext
 
- 
- Throws:
- MalformedURLException
 
getResourceAsStream
public InputStream getResourceAsStream(String path)
- 
- Specified by:
- getResourceAsStreamin class- javax.faces.context.ExternalContext
 
- 
 
getResourcePaths
public Set getResourcePaths(String path)
- 
- Specified by:
- getResourcePathsin class- javax.faces.context.ExternalContext
 
- 
 
getResponse
public Object getResponse()
- 
- Specified by:
- getResponsein class- javax.faces.context.ExternalContext
 
- 
 
getSession
public Object getSession(boolean create)
- 
- Specified by:
- getSessionin class- javax.faces.context.ExternalContext
 
- 
 
getSessionMap
public Map getSessionMap()
- 
- Specified by:
- getSessionMapin class- javax.faces.context.ExternalContext
 
- 
 
getUserPrincipal
public Principal getUserPrincipal()
- 
- Specified by:
- getUserPrincipalin class- javax.faces.context.ExternalContext
 
- 
 
isUserInRole
public boolean isUserInRole(String role)
- 
- Specified by:
- isUserInRolein class- javax.faces.context.ExternalContext
 
- 
 
log
public void log(String message)
- 
- Specified by:
- login class- javax.faces.context.ExternalContext
 
- 
 
log
public void log(String message,
                Throwable exception)
- 
- Specified by:
- login class- javax.faces.context.ExternalContext
 
- 
 
redirect
public void redirect(String url)
              throws IOException
- 
- Specified by:
- redirectin class- javax.faces.context.ExternalContext
 
- 
- Throws:
- IOException
 
getResponseContentType
public String getResponseContentType()
- 
- Overrides:
- getResponseContentTypein class- javax.faces.context.ExternalContext
 
- 
 
setRequest
public void setRequest(Object request)
- 
- Overrides:
- setRequestin class- javax.faces.context.ExternalContext
 
- 
 
setRequestCharacterEncoding
public void setRequestCharacterEncoding(String encoding)
                                 throws UnsupportedEncodingException
- 
- Overrides:
- setRequestCharacterEncodingin class- javax.faces.context.ExternalContext
 
- 
- Throws:
- UnsupportedEncodingException
 
setResponse
public void setResponse(Object response)
- 
- Overrides:
- setResponsein class- javax.faces.context.ExternalContext
 
- 
 
setResponseCharacterEncoding
public void setResponseCharacterEncoding(String encoding)
- 
- Overrides:
- setResponseCharacterEncodingin class- javax.faces.context.ExternalContext
 
- 
 
getResponseCharacterEncoding
public String getResponseCharacterEncoding()
- 
- Overrides:
- getResponseCharacterEncodingin class- javax.faces.context.ExternalContext
 
- 
 
getRequestCharacterEncoding
public String getRequestCharacterEncoding()
- 
- Overrides:
- getRequestCharacterEncodingin class- javax.faces.context.ExternalContext
 
- 
 
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.