org.apache.myfaces.context.servlet
Class FacesContextImpl
java.lang.Object
javax.faces.context.FacesContext
org.apache.myfaces.context.servlet.FacesContextImplBase
org.apache.myfaces.context.servlet.FacesContextImpl
- Direct Known Subclasses:
- ServletFacesContextImpl
public class FacesContextImpl
- extends FacesContextImplBase
- Version:
- $Revision: 1296667 $ $Date: 2012-03-03 17:54:07 +0100 (Sat, 03 Mar 2012) $
- Author:
- Manfred Geiler (latest modification by $Author: lu4242 $), Anton Koinov
Constructor Summary |
FacesContextImpl(ExternalContext externalContext,
ReleaseableExternalContext defaultExternalContext,
ReleaseableFacesContextFactory facesContextFactory)
Creates a FacesContextImpl with the given ExternalContext,
ReleaseableExternalContext and ReleaseableFacesContextFactory. |
FacesContextImpl(ExternalContext externalContext,
ReleaseableExternalContext defaultExternalContext,
ReleaseableFacesContextFactory facesContextFactory,
ApplicationFactory applicationFactory,
RenderKitFactory renderKitFactory,
PartialViewContextFactory partialViewContextFactory)
|
FacesContextImpl(javax.servlet.ServletContext servletContext,
javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse)
Creates a FacesContextImpl with a ServletExternalContextImpl. |
Methods inherited from class org.apache.myfaces.context.servlet.FacesContextImplBase |
assertNotReleased, getApplication, getAttributes, getELContext, getExceptionHandler, getExternalContext, getRenderKit, getViewRoot, isProcessingEvents, setExceptionHandler, setProcessingEvents, setViewRoot |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FacesContextImpl
public FacesContextImpl(javax.servlet.ServletContext servletContext,
javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse)
- Creates a FacesContextImpl with a ServletExternalContextImpl.
FacesContextImpl
public FacesContextImpl(ExternalContext externalContext,
ReleaseableExternalContext defaultExternalContext,
ReleaseableFacesContextFactory facesContextFactory)
- Creates a FacesContextImpl with the given ExternalContext,
ReleaseableExternalContext and ReleaseableFacesContextFactory.
- Parameters:
externalContext
- defaultExternalContext
- facesContextFactory
-
FacesContextImpl
public FacesContextImpl(ExternalContext externalContext,
ReleaseableExternalContext defaultExternalContext,
ReleaseableFacesContextFactory facesContextFactory,
ApplicationFactory applicationFactory,
RenderKitFactory renderKitFactory,
PartialViewContextFactory partialViewContextFactory)
release
public final void release()
- Description copied from class:
FacesContextImplBase
- Releases the instance fields on FacesContextImplBase.
Must be called by sub-classes, when overriding it!
- Overrides:
release
in class FacesContextImplBase
getMaximumSeverity
public final FacesMessage.Severity getMaximumSeverity()
- Specified by:
getMaximumSeverity
in class FacesContext
addMessage
public final void addMessage(String clientId,
FacesMessage message)
- Specified by:
addMessage
in class FacesContext
getMessageList
public List<FacesMessage> getMessageList()
- Overrides:
getMessageList
in class FacesContext
getMessageList
public List<FacesMessage> getMessageList(String clientId)
- Overrides:
getMessageList
in class FacesContext
getMessages
public final Iterator<FacesMessage> getMessages()
- Specified by:
getMessages
in class FacesContext
getMessages
public final Iterator<FacesMessage> getMessages(String clientId)
- Specified by:
getMessages
in class FacesContext
getClientIdsWithMessages
public final Iterator<String> getClientIdsWithMessages()
- Specified by:
getClientIdsWithMessages
in class FacesContext
getCurrentPhaseId
public PhaseId getCurrentPhaseId()
- Overrides:
getCurrentPhaseId
in class FacesContext
setCurrentPhaseId
public void setCurrentPhaseId(PhaseId currentPhaseId)
- Overrides:
setCurrentPhaseId
in class FacesContext
getPartialViewContext
public PartialViewContext getPartialViewContext()
- Overrides:
getPartialViewContext
in class FacesContext
getRenderResponse
public final boolean getRenderResponse()
- Specified by:
getRenderResponse
in class FacesContext
renderResponse
public final void renderResponse()
- Specified by:
renderResponse
in class FacesContext
getResponseComplete
public final boolean getResponseComplete()
- Specified by:
getResponseComplete
in class FacesContext
responseComplete
public final void responseComplete()
- Specified by:
responseComplete
in class FacesContext
setResponseStream
public final void setResponseStream(ResponseStream responseStream)
- Specified by:
setResponseStream
in class FacesContext
getResponseStream
public final ResponseStream getResponseStream()
- Specified by:
getResponseStream
in class FacesContext
setResponseWriter
public final void setResponseWriter(ResponseWriter responseWriter)
- Specified by:
setResponseWriter
in class FacesContext
getResponseWriter
public final ResponseWriter getResponseWriter()
- Specified by:
getResponseWriter
in class FacesContext
isPostback
public boolean isPostback()
- Overrides:
isPostback
in class FacesContext
validationFailed
public void validationFailed()
- Overrides:
validationFailed
in class FacesContext
isValidationFailed
public boolean isValidationFailed()
- Overrides:
isValidationFailed
in class FacesContext
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.