org.apache.myfaces.context.servlet
Class FacesContextImpl

java.lang.Object
  extended by javax.faces.context.FacesContext
      extended by org.apache.myfaces.context.servlet.FacesContextImplBase
          extended by org.apache.myfaces.context.servlet.FacesContextImpl
Direct Known Subclasses:
ServletFacesContextImpl

public class FacesContextImpl
extends FacesContextImplBase

Version:
$Revision: 1364594 $ $Date: 2012-07-23 07:09:15 -0500 (Mon, 23 Jul 2012) $
Author:
Manfred Geiler (latest modification by $Author: lu4242 $), Anton Koinov

Field Summary
 
Fields inherited from class org.apache.myfaces.context.servlet.FacesContextImplBase
_released
 
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.
 
Method Summary
 void addMessage(String clientId, FacesMessage message)
           
 Iterator<String> getClientIdsWithMessages()
           
 PhaseId getCurrentPhaseId()
           
 FacesMessage.Severity getMaximumSeverity()
           
 List<FacesMessage> getMessageList()
           
 List<FacesMessage> getMessageList(String clientId)
           
 Iterator<FacesMessage> getMessages()
           
 Iterator<FacesMessage> getMessages(String clientId)
           
 PartialViewContext getPartialViewContext()
           
 boolean getRenderResponse()
           
 boolean getResponseComplete()
           
 ResponseStream getResponseStream()
           
 ResponseWriter getResponseWriter()
           
 boolean isPostback()
           
 boolean isValidationFailed()
           
 void release()
          Releases the instance fields on FacesContextImplBase.
 void renderResponse()
           
 void responseComplete()
           
 void setCurrentPhaseId(PhaseId currentPhaseId)
           
 void setResponseStream(ResponseStream responseStream)
           
 void setResponseWriter(ResponseWriter responseWriter)
           
 void validationFailed()
           
 
Methods inherited from class org.apache.myfaces.context.servlet.FacesContextImplBase
assertNotReleased, getApplication, getAttributes, getELContext, getExceptionHandler, getExternalContext, getRenderKit, getViewRoot, isProcessingEvents, isReleased, setExceptionHandler, setProcessingEvents, setViewRoot
 
Methods inherited from class javax.faces.context.FacesContext
getCurrentInstance, isProjectStage, setCurrentInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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 © 2014 The Apache Software Foundation. All Rights Reserved.