org.apache.myfaces.context.portlet
Class PortletExternalContextImpl

java.lang.Object
  extended by javax.faces.context.ExternalContext
      extended by org.apache.myfaces.context.portlet.PortletExternalContextImpl
All Implemented Interfaces:
ReleaseableExternalContext

Deprecated. Replaced by jsr 301 portlet bridge.

public class PortletExternalContextImpl
extends ExternalContext
implements ReleaseableExternalContext

An ExternalContext implementation for JSF applications that run inside a Portlet.

Version:
$Revision: 827879 $ $Date: 2009-10-20 22:10:03 -0500 (Tue, 20 Oct 2009) $
Author:
Stan Silvert (latest modification by $Author: lu4242 $)

Field Summary
 
Fields inherited from class javax.faces.context.ExternalContext
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
Constructor Summary
PortletExternalContextImpl(javax.portlet.PortletContext portletContext, javax.portlet.PortletRequest portletRequest, javax.portlet.PortletResponse portletResponse)
          Deprecated. Creates a new instance of PortletFacesContextImpl
 
Method Summary
 void dispatch(String path)
          Deprecated.  
 String encodeActionURL(String url)
          Deprecated.  
 String encodeNamespace(String name)
          Deprecated.  
 String encodeResourceURL(String url)
          Deprecated.  
 Map<String,Object> getApplicationMap()
          Deprecated.  
 String getAuthType()
          Deprecated.  
 Object getContext()
          Deprecated.  
 String getInitParameter(String name)
          Deprecated.  
 Map<String,String> getInitParameterMap()
          Deprecated.  
 String getRemoteUser()
          Deprecated.  
 Object getRequest()
          Deprecated.  
 String getRequestCharacterEncoding()
          Deprecated.  
 String getRequestContentType()
          Deprecated.  
 String getRequestContextPath()
          Deprecated.  
 Map<String,Object> getRequestCookieMap()
          Deprecated.  
 Map<String,String> getRequestHeaderMap()
          Deprecated.  
 Map<String,String[]> getRequestHeaderValuesMap()
          Deprecated.  
 Locale getRequestLocale()
          Deprecated.  
 Iterator<Locale> getRequestLocales()
          Deprecated.  
 Map<String,Object> getRequestMap()
          Deprecated.  
 Map<String,String> getRequestParameterMap()
          Deprecated.  
 Iterator<String> getRequestParameterNames()
          Deprecated.  
 Map<String,String[]> getRequestParameterValuesMap()
          Deprecated.  
 String getRequestPathInfo()
          Deprecated.  
 String getRequestServletPath()
          Deprecated.  
 URL getResource(String path)
          Deprecated.  
 InputStream getResourceAsStream(String path)
          Deprecated.  
 Set<String> getResourcePaths(String path)
          Deprecated.  
 Object getResponse()
          Deprecated.  
 String getResponseCharacterEncoding()
          Deprecated.  
 String getResponseContentType()
          Deprecated.  
 Object getSession(boolean create)
          Deprecated.  
 Map<String,Object> getSessionMap()
          Deprecated.  
 Principal getUserPrincipal()
          Deprecated.  
 boolean isUserInRole(String role)
          Deprecated.  
 void log(String message)
          Deprecated.  
 void log(String message, Throwable exception)
          Deprecated.  
 void redirect(String url)
          Deprecated.  
 void release()
          Deprecated. Release resources that the ExternalContext is holding onto.
 void setRequest(Object request)
          Deprecated.  
 void setRequestCharacterEncoding(String encoding)
          Deprecated.  
 void setResponse(Object response)
          Deprecated.  
 void setResponseCharacterEncoding(String encoding)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletExternalContextImpl

public PortletExternalContextImpl(javax.portlet.PortletContext portletContext,
                                  javax.portlet.PortletRequest portletRequest,
                                  javax.portlet.PortletResponse portletResponse)
Deprecated. 
Creates a new instance of PortletFacesContextImpl

Method Detail

dispatch

public void dispatch(String path)
              throws IOException
Deprecated. 
Specified by:
dispatch in class ExternalContext
Throws:
IOException

encodeActionURL

public String encodeActionURL(String url)
Deprecated. 
Specified by:
encodeActionURL in class ExternalContext

encodeNamespace

public String encodeNamespace(String name)
Deprecated. 
Specified by:
encodeNamespace in class ExternalContext

encodeResourceURL

public String encodeResourceURL(String url)
Deprecated. 
Specified by:
encodeResourceURL in class ExternalContext

getApplicationMap

public Map<String,Object> getApplicationMap()
Deprecated. 
Specified by:
getApplicationMap in class ExternalContext

getAuthType

public String getAuthType()
Deprecated. 
Specified by:
getAuthType in class ExternalContext

getContext

public Object getContext()
Deprecated. 
Specified by:
getContext in class ExternalContext

getInitParameter

public String getInitParameter(String name)
Deprecated. 
Specified by:
getInitParameter in class ExternalContext

getInitParameterMap

public Map<String,String> getInitParameterMap()
Deprecated. 
Specified by:
getInitParameterMap in class ExternalContext

getRemoteUser

public String getRemoteUser()
Deprecated. 
Specified by:
getRemoteUser in class ExternalContext

getRequest

public Object getRequest()
Deprecated. 
Specified by:
getRequest in class ExternalContext

getRequestContentType

public String getRequestContentType()
Deprecated. 
Overrides:
getRequestContentType in class ExternalContext

getRequestContextPath

public String getRequestContextPath()
Deprecated. 
Specified by:
getRequestContextPath in class ExternalContext

getRequestCookieMap

public Map<String,Object> getRequestCookieMap()
Deprecated. 
Specified by:
getRequestCookieMap in class ExternalContext

getRequestHeaderMap

public Map<String,String> getRequestHeaderMap()
Deprecated. 
Specified by:
getRequestHeaderMap in class ExternalContext

getRequestHeaderValuesMap

public Map<String,String[]> getRequestHeaderValuesMap()
Deprecated. 
Specified by:
getRequestHeaderValuesMap in class ExternalContext

getRequestLocale

public Locale getRequestLocale()
Deprecated. 
Specified by:
getRequestLocale in class ExternalContext

getRequestLocales

public Iterator<Locale> getRequestLocales()
Deprecated. 
Specified by:
getRequestLocales in class ExternalContext

getRequestMap

public Map<String,Object> getRequestMap()
Deprecated. 
Specified by:
getRequestMap in class ExternalContext

getRequestParameterMap

public Map<String,String> getRequestParameterMap()
Deprecated. 
Specified by:
getRequestParameterMap in class ExternalContext

getRequestParameterNames

public Iterator<String> getRequestParameterNames()
Deprecated. 
Specified by:
getRequestParameterNames in class ExternalContext

getRequestParameterValuesMap

public Map<String,String[]> getRequestParameterValuesMap()
Deprecated. 
Specified by:
getRequestParameterValuesMap in class ExternalContext

getRequestPathInfo

public String getRequestPathInfo()
Deprecated. 
Specified by:
getRequestPathInfo in class ExternalContext

getRequestServletPath

public String getRequestServletPath()
Deprecated. 
Specified by:
getRequestServletPath in class ExternalContext

getResource

public URL getResource(String path)
                throws MalformedURLException
Deprecated. 
Specified by:
getResource in class ExternalContext
Throws:
MalformedURLException

getResourceAsStream

public InputStream getResourceAsStream(String path)
Deprecated. 
Specified by:
getResourceAsStream in class ExternalContext

getResourcePaths

public Set<String> getResourcePaths(String path)
Deprecated. 
Specified by:
getResourcePaths in class ExternalContext

getResponse

public Object getResponse()
Deprecated. 
Specified by:
getResponse in class ExternalContext

getResponseContentType

public String getResponseContentType()
Deprecated. 
Overrides:
getResponseContentType in class ExternalContext

getSession

public Object getSession(boolean create)
Deprecated. 
Specified by:
getSession in class ExternalContext

getSessionMap

public Map<String,Object> getSessionMap()
Deprecated. 
Specified by:
getSessionMap in class ExternalContext

getUserPrincipal

public Principal getUserPrincipal()
Deprecated. 
Specified by:
getUserPrincipal in class ExternalContext

isUserInRole

public boolean isUserInRole(String role)
Deprecated. 
Specified by:
isUserInRole in class ExternalContext

log

public void log(String message)
Deprecated. 
Specified by:
log in class ExternalContext

log

public void log(String message,
                Throwable exception)
Deprecated. 
Specified by:
log in class ExternalContext

redirect

public void redirect(String url)
              throws IOException
Deprecated. 
Specified by:
redirect in class ExternalContext
Throws:
IOException

release

public void release()
Deprecated. 
Description copied from interface: ReleaseableExternalContext
Release resources that the ExternalContext is holding onto.

Specified by:
release in interface ReleaseableExternalContext

setRequest

public void setRequest(Object request)
Deprecated. 
Overrides:
setRequest in class ExternalContext
Parameters:
request -
Since:
JSF 1.2

setRequestCharacterEncoding

public void setRequestCharacterEncoding(String encoding)
                                 throws UnsupportedEncodingException
Deprecated. 
Overrides:
setRequestCharacterEncoding in class ExternalContext
Parameters:
encoding -
Throws:
UnsupportedEncodingException
Since:
JSF 1.2

getRequestCharacterEncoding

public String getRequestCharacterEncoding()
Deprecated. 
Overrides:
getRequestCharacterEncoding in class ExternalContext

getResponseCharacterEncoding

public String getResponseCharacterEncoding()
Deprecated. 
Overrides:
getResponseCharacterEncoding in class ExternalContext

setResponse

public void setResponse(Object response)
Deprecated. 
Overrides:
setResponse in class ExternalContext
Parameters:
response -
Since:
JSF 1.2

setResponseCharacterEncoding

public void setResponseCharacterEncoding(String encoding)
Deprecated. 
Overrides:
setResponseCharacterEncoding in class ExternalContext
Parameters:
encoding -
Since:
JSF 1.2


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.