org.apache.myfaces.context.portlet

Class PortletExternalContextImpl

Implemented Interfaces:
ReleaseableExternalContext

public class PortletExternalContextImpl
extends ExternalContext
implements ReleaseableExternalContext

An ExternalContext implementation for JSF applications that run inside a a Portlet.
Version:
$Revision: 215974 $ $Date: 2005-07-12 17:55:45 +0200 (Tue, 12 Jul 2005) $
Author:
Stan Silvert (latest modification by $Author: grantsmith $)

Constructor Summary

PortletExternalContextImpl(PortletContext portletContext, PortletRequest portletRequest, PortletResponse portletResponse)
Creates a new instance of PortletFacesContextImpl

Method Summary

void
dispatch(String path)
String
encodeActionURL(String url)
String
encodeNamespace(String name)
String
encodeResourceURL(String url)
Map
getApplicationMap()
String
getAuthType()
Object
getContext()
String
getInitParameter(String name)
Map
getInitParameterMap()
String
getRemoteUser()
Object
getRequest()
String
getRequestContextPath()
Map
getRequestCookieMap()
Map
getRequestHeaderMap()
Map
getRequestHeaderValuesMap()
Locale
getRequestLocale()
Iterator
getRequestLocales()
Map
getRequestMap()
Map
getRequestParameterMap()
Iterator
getRequestParameterNames()
Map
getRequestParameterValuesMap()
String
getRequestPathInfo()
String
getRequestServletPath()
URL
getResource(String path)
InputStream
getResourceAsStream(String path)
Set
getResourcePaths(String path)
Object
getResponse()
Object
getSession(boolean create)
Map
getSessionMap()
Principal
getUserPrincipal()
boolean
isUserInRole(String role)
void
log(String message)
void
log(String message, Throwable exception)
void
redirect(String url)
void
release()

Constructor Details

PortletExternalContextImpl

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

Method Details

dispatch

public void dispatch(String path)
            throws IOException

encodeActionURL

public String encodeActionURL(String url)

encodeNamespace

public String encodeNamespace(String name)

encodeResourceURL

public String encodeResourceURL(String url)

getApplicationMap

public Map getApplicationMap()

getAuthType

public String getAuthType()

getContext

public Object getContext()

getInitParameter

public String getInitParameter(String name)

getInitParameterMap

public Map getInitParameterMap()

getRemoteUser

public String getRemoteUser()

getRequest

public Object getRequest()

getRequestContextPath

public String getRequestContextPath()

getRequestCookieMap

public Map getRequestCookieMap()

getRequestHeaderMap

public Map getRequestHeaderMap()

getRequestHeaderValuesMap

public Map getRequestHeaderValuesMap()

getRequestLocale

public Locale getRequestLocale()

getRequestLocales

public Iterator getRequestLocales()

getRequestMap

public Map getRequestMap()

getRequestParameterMap

public Map getRequestParameterMap()

getRequestParameterNames

public Iterator getRequestParameterNames()

getRequestParameterValuesMap

public Map getRequestParameterValuesMap()

getRequestPathInfo

public String getRequestPathInfo()

getRequestServletPath

public String getRequestServletPath()

getResource

public URL getResource(String path)
            throws MalformedURLException

getResourceAsStream

public InputStream getResourceAsStream(String path)

getResourcePaths

public Set getResourcePaths(String path)

getResponse

public Object getResponse()

getSession

public Object getSession(boolean create)

getSessionMap

public Map getSessionMap()

getUserPrincipal

public Principal getUserPrincipal()

isUserInRole

public boolean isUserInRole(String role)

log

public void log(String message)

log

public void log(String message,
                Throwable exception)

redirect

public void redirect(String url)
            throws IOException

release

public void release()
Specified by:
release in interface ReleaseableExternalContext