org.apache.myfaces.context.servlet
Class StartupFacesContextImpl

java.lang.Object
  extended by javax.faces.context.FacesContext
      extended by org.apache.myfaces.context.servlet.FacesContextImplBase
          extended by org.apache.myfaces.context.servlet.StartupFacesContextImpl

public class StartupFacesContextImpl
extends FacesContextImplBase

A FacesContext implementation which will be set as the current instance during container startup and shutdown and which provides a basic set of FacesContext functionality.

Version:
$Revision: 963629 $ $Date: 2010-07-13 04:29:07 -0500 (Tue, 13 Jul 2010) $
Author:
Jakob Korherr (latest modification by $Author: jakobk $)

Field Summary
static String EXCEPTION_TEXT
           
 
Fields inherited from class org.apache.myfaces.context.servlet.FacesContextImplBase
_released
 
Constructor Summary
StartupFacesContextImpl(ExternalContext externalContext, ReleaseableExternalContext defaultExternalContext, ExceptionHandler exceptionHandler, boolean startup)
           
 
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 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, release, 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
 

Field Detail

EXCEPTION_TEXT

public static final String EXCEPTION_TEXT
See Also:
Constant Field Values
Constructor Detail

StartupFacesContextImpl

public StartupFacesContextImpl(ExternalContext externalContext,
                               ReleaseableExternalContext defaultExternalContext,
                               ExceptionHandler exceptionHandler,
                               boolean startup)
Method Detail

getMaximumSeverity

public final FacesMessage.Severity getMaximumSeverity()
Specified by:
getMaximumSeverity 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

getClientIdsWithMessages

public final Iterator<String> getClientIdsWithMessages()
Specified by:
getClientIdsWithMessages in class FacesContext

getMessages

public final Iterator<FacesMessage> getMessages(String clientId)
Specified by:
getMessages in class FacesContext

addMessage

public final void addMessage(String clientId,
                             FacesMessage message)
Specified by:
addMessage in class FacesContext

getPartialViewContext

public PartialViewContext getPartialViewContext()
Overrides:
getPartialViewContext 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

renderResponse

public final void renderResponse()
Specified by:
renderResponse in class FacesContext

responseComplete

public final void responseComplete()
Specified by:
responseComplete in class FacesContext

getCurrentPhaseId

public PhaseId getCurrentPhaseId()
Overrides:
getCurrentPhaseId in class FacesContext

setCurrentPhaseId

public void setCurrentPhaseId(PhaseId currentPhaseId)
Overrides:
setCurrentPhaseId in class FacesContext

getRenderResponse

public final boolean getRenderResponse()
Specified by:
getRenderResponse in class FacesContext

getResponseComplete

public final boolean getResponseComplete()
Specified by:
getResponseComplete 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


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.