SourceForge.net Logo

de.mindmatters.faces.context
Class FacesContextImpl

java.lang.Object
  extended byjavax.faces.context.FacesContext
      extended byde.mindmatters.faces.context.FacesContextImpl

public final class FacesContextImpl
extends FacesContext

FacesContext contains all of the per-request state information related to the processing of a single JavaServer Faces request, and the rendering of the corresponding response. It is passed to, and potentially modified by, each phase of the request processing lifecycle.

A FacesContext instance is associated with a particular request at the beginning of request processing, by a call to the getFacesContext() method of the FacesContextFactory 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 FacesContext 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.

Note: copied from FacesContext docs.

Author:
Andreas Kuhrwahl

Constructor Summary
FacesContextImpl(ExternalContext externalContext)
          Constructs a FacesContext with the given ExternalContext externalContext.
 
Method Summary
 void addMessage(java.lang.String clientId, FacesMessage message)
          
 Application getApplication()
          
 java.util.Iterator getClientIdsWithMessages()
          
 ExternalContext getExternalContext()
          
 FacesMessage.Severity getMaximumSeverity()
          
 java.util.Iterator getMessages()
          
 java.util.Iterator getMessages(java.lang.String clientId)
          
 RenderKit getRenderKit()
          
 boolean getRenderResponse()
          
 boolean getResponseComplete()
          
 ResponseStream getResponseStream()
          
 ResponseWriter getResponseWriter()
          
 UIViewRoot getViewRoot()
          
 void release()
          
 void renderResponse()
          
 void responseComplete()
          
 void setResponseStream(ResponseStream responseStream)
          
 void setResponseWriter(ResponseWriter responseWriter)
          
 void setViewRoot(UIViewRoot viewRoot)
          
 
Methods inherited from class javax.faces.context.FacesContext
getCurrentInstance, setCurrentInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FacesContextImpl

public FacesContextImpl(ExternalContext externalContext)
Constructs a FacesContext with the given ExternalContext externalContext.

Parameters:
externalContext - usually a fake context
See Also:
ServletExternalContextFake
Method Detail

getApplication

public Application getApplication()


getClientIdsWithMessages

public java.util.Iterator getClientIdsWithMessages()


getExternalContext

public ExternalContext getExternalContext()


getMaximumSeverity

public FacesMessage.Severity getMaximumSeverity()


getMessages

public java.util.Iterator getMessages()


getMessages

public java.util.Iterator getMessages(java.lang.String clientId)


getRenderKit

public RenderKit getRenderKit()


getRenderResponse

public boolean getRenderResponse()


getResponseComplete

public boolean getResponseComplete()


addMessage

public void addMessage(java.lang.String clientId,
                       FacesMessage message)


release

public void release()


renderResponse

public void renderResponse()


responseComplete

public void responseComplete()


getResponseStream

public ResponseStream getResponseStream()


setResponseStream

public void setResponseStream(ResponseStream responseStream)


getResponseWriter

public ResponseWriter getResponseWriter()


setResponseWriter

public void setResponseWriter(ResponseWriter responseWriter)


getViewRoot

public UIViewRoot getViewRoot()


setViewRoot

public void setViewRoot(UIViewRoot viewRoot)


SourceForge.net Logo

Copyright © 2002 mindmatters GmbH & Co. KG