public class PortletFacesContext extends BaseFacesContext
PortletFacesContext
contains all of the per-request state
information related to the processing of a single request, and the rendering
of the corresponding response. It is passed to, and potentially modified by,
each phase of the request processing lifecycle.
A PortletFacesContext
instance is associated with a particular
request at the beginning of request processing, by a call to the
getFacesContext()
method of the
PortletFacesContextFactory
instance associated with the current web
application. The instance remains active until its release()
method is called, after which no further references to this instance are
allowed. While a PortletFacesContext
instance is active, it must
not be referenced from any thread other than the one upon which the servlet
container executing this web application utilizes for the processing of this
request.
Modifier and Type | Class and Description |
---|---|
class |
PortletFacesContext.PortletExternalContext
This class allows the Faces API to be unaware of the nature of its
containing application environment.
|
BaseFacesContext.BaseExternalContext
Modifier and Type | Field and Description |
---|---|
protected PortletFacesContext.PortletExternalContext |
m_externalContext |
protected javax.portlet.PortletConfig |
m_portletConfig |
protected javax.portlet.PortletContext |
m_portletContext |
protected javax.portlet.PortletRequest |
m_request |
protected javax.portlet.PortletResponse |
m_response |
m_application, m_elContext, m_released, m_stream, m_useCAFViewHandler, m_writer
m_wrapped
Constructor and Description |
---|
PortletFacesContext()
Default constructor.
|
PortletFacesContext(FacesContext wrapped)
Create a
PortletFacesContext with a wrapped FacesContext . |
Modifier and Type | Method and Description |
---|---|
ExternalContext |
getExternalContext()
Return the
ExternalContext instance for this FacesContext instance. |
ResponseStream |
getResponseStream()
Return the
ResponseStream to which components should direct their binary output. |
ResponseWriter |
getResponseWriter()
Return the
ResponseWriter to which components should direct their character-based output. |
void |
initialize(Object context,
Object request,
Object response)
Initialize this
PortletFacesContext with
PortletConfig or PortletContext , PortletRequest
and PortletResponse . |
boolean |
isPostback() |
void |
release()
Release any resources associated with this
PortletFacesContext instance. |
addMessage, assertNotReleased, getApplication, getELContext, setResponseStream, setResponseWriter, useCAFViewHandler
getWrapped, setWrapped
getAttributes, getClientIdsWithMessages, getCurrentPhaseId, getExceptionHandler, getMaximumSeverity, getMessageList, getMessageList, getMessages, getMessages, getNamingContainerSeparatorChar, getPartialViewContext, getRenderKit, getRenderResponse, getResourceLibraryContracts, getResponseComplete, getViewRoot, isProcessingEvents, isProjectStage, isReleased, isValidationFailed, renderResponse, responseComplete, setCurrentPhaseId, setExceptionHandler, setProcessingEvents, setResourceLibraryContracts, setViewRoot, validationFailed
getCurrentInstance, setCurrentInstance
protected javax.portlet.PortletContext m_portletContext
protected javax.portlet.PortletConfig m_portletConfig
protected javax.portlet.PortletRequest m_request
protected javax.portlet.PortletResponse m_response
protected PortletFacesContext.PortletExternalContext m_externalContext
public PortletFacesContext()
public PortletFacesContext(FacesContext wrapped)
PortletFacesContext
with a wrapped FacesContext
.wrapped
- FacesContext
public ExternalContext getExternalContext()
ExternalContext
instance for this FacesContext
instance.getExternalContext
in class FacesContextWrapper
public boolean isPostback()
isPostback
in class FacesContextWrapper
public ResponseStream getResponseStream()
ResponseStream
to which components should direct their binary output.getResponseStream
in class BaseFacesContext
public ResponseWriter getResponseWriter()
ResponseWriter
to which components should direct their character-based output.getResponseWriter
in class BaseFacesContext
public void release()
PortletFacesContext
instance.release
in class BaseFacesContext