Package com.webmethods.caf.faces.portlet
Class PortletFacesContext
java.lang.Object
javax.faces.context.FacesContext
javax.faces.context.FacesContextWrapper
com.webmethods.caf.faces.context.FacesContextWrapper
com.webmethods.caf.faces.context.BaseFacesContext
com.webmethods.caf.faces.portlet.PortletFacesContext
- All Implemented Interfaces:
FacesWrapper<FacesContext>
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
This class allows the Faces API to be unaware of the nature of its containing application environment.Nested classes/interfaces inherited from class com.webmethods.caf.faces.context.BaseFacesContext
BaseFacesContext.BaseExternalContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected javax.portlet.PortletConfig
protected javax.portlet.PortletContext
protected javax.portlet.PortletRequest
protected javax.portlet.PortletResponse
Fields inherited from class com.webmethods.caf.faces.context.BaseFacesContext
m_application, m_elContext, m_released, m_stream, m_useCAFViewHandler, m_writer
Fields inherited from class com.webmethods.caf.faces.context.FacesContextWrapper
m_wrapped
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.PortletFacesContext
(FacesContext wrapped) Create aPortletFacesContext
with a wrappedFacesContext
. -
Method Summary
Modifier and TypeMethodDescriptionReturn theExternalContext
instance for thisFacesContext
instance.Return theResponseStream
to which components should direct their binary output.Return theResponseWriter
to which components should direct their character-based output.void
initialize
(Object context, Object request, Object response) Initialize thisPortletFacesContext
withPortletConfig
orPortletContext
,PortletRequest
andPortletResponse
.boolean
void
release()
Release any resources associated with thisPortletFacesContext
instance.Methods inherited from class com.webmethods.caf.faces.context.BaseFacesContext
addMessage, assertNotReleased, getApplication, getELContext, setResponseStream, setResponseWriter, useCAFViewHandler
Methods inherited from class com.webmethods.caf.faces.context.FacesContextWrapper
getWrapped, setWrapped
Methods inherited from class javax.faces.context.FacesContextWrapper
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
Methods inherited from class javax.faces.context.FacesContext
getCurrentInstance, setCurrentInstance
-
Field Details
-
m_portletContext
protected javax.portlet.PortletContext m_portletContext -
m_portletConfig
protected javax.portlet.PortletConfig m_portletConfig -
m_request
protected javax.portlet.PortletRequest m_request -
m_response
protected javax.portlet.PortletResponse m_response -
m_externalContext
-
-
Constructor Details
-
PortletFacesContext
public PortletFacesContext()Default constructor. -
PortletFacesContext
Create aPortletFacesContext
with a wrappedFacesContext
.- Parameters:
wrapped
-FacesContext
-
-
Method Details
-
getExternalContext
Return theExternalContext
instance for thisFacesContext
instance.- Overrides:
getExternalContext
in classFacesContextWrapper
-
isPostback
public boolean isPostback()- Overrides:
isPostback
in classFacesContextWrapper
-
getResponseStream
Return theResponseStream
to which components should direct their binary output.- Overrides:
getResponseStream
in classBaseFacesContext
-
getResponseWriter
Return theResponseWriter
to which components should direct their character-based output.- Overrides:
getResponseWriter
in classBaseFacesContext
-
release
public void release()Release any resources associated with thisPortletFacesContext
instance.- Overrides:
release
in classBaseFacesContext
-
initialize
Initialize thisPortletFacesContext
withPortletConfig
orPortletContext
,PortletRequest
andPortletResponse
.- Parameters:
context
-PortletConfig
orPortletContext
request
-PortletRequest
response
-PortletResponse
-