JSF-Spring

de.mindmatters.faces.context
Class FacesContextImpl

java.lang.Object
  extended by javax.faces.context.FacesContext
      extended by de.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

Field Summary
protected  org.apache.commons.logging.Log logger
          For logging.
 
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
 

Field Detail

logger

protected final org.apache.commons.logging.Log logger
For logging.

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()

Specified by:
getApplication in class FacesContext

getClientIdsWithMessages

public java.util.Iterator getClientIdsWithMessages()

Specified by:
getClientIdsWithMessages in class FacesContext

getExternalContext

public ExternalContext getExternalContext()

Specified by:
getExternalContext in class FacesContext

getMaximumSeverity

public FacesMessage.Severity getMaximumSeverity()

Specified by:
getMaximumSeverity in class FacesContext

getMessages

public java.util.Iterator getMessages()

Specified by:
getMessages in class FacesContext

getMessages

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

Specified by:
getMessages in class FacesContext

getRenderKit

public RenderKit getRenderKit()

Specified by:
getRenderKit in class FacesContext

getRenderResponse

public boolean getRenderResponse()

Specified by:
getRenderResponse in class FacesContext

getResponseComplete

public boolean getResponseComplete()

Specified by:
getResponseComplete in class FacesContext

addMessage

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

Specified by:
addMessage in class FacesContext

release

public void release()

Specified by:
release in class FacesContext

renderResponse

public void renderResponse()

Specified by:
renderResponse in class FacesContext

responseComplete

public void responseComplete()

Specified by:
responseComplete in class FacesContext

getResponseStream

public ResponseStream getResponseStream()

Specified by:
getResponseStream in class FacesContext

setResponseStream

public void setResponseStream(ResponseStream responseStream)

Specified by:
setResponseStream in class FacesContext

getResponseWriter

public ResponseWriter getResponseWriter()

Specified by:
getResponseWriter in class FacesContext

setResponseWriter

public void setResponseWriter(ResponseWriter responseWriter)

Specified by:
setResponseWriter in class FacesContext

getViewRoot

public UIViewRoot getViewRoot()

Specified by:
getViewRoot in class FacesContext

setViewRoot

public void setViewRoot(UIViewRoot viewRoot)

Specified by:
setViewRoot in class FacesContext

JSF-Spring

Copyright © 2006 mindmatters GmbH & Co. KG