| 
 | JSF-Spring | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.context.FacesContext
de.mindmatters.faces.context.FacesContextImpl
public final class FacesContextImpl
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.
| Field Summary | |
|---|---|
| protected  org.apache.commons.logging.Log | loggerFor 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 | 
|---|
protected final org.apache.commons.logging.Log logger
| Constructor Detail | 
|---|
public FacesContextImpl(ExternalContext externalContext)
externalContext.
externalContext - usually a fake contextServletExternalContextFake| Method Detail | 
|---|
public Application getApplication()
getApplication in class FacesContextpublic java.util.Iterator getClientIdsWithMessages()
getClientIdsWithMessages in class FacesContextpublic ExternalContext getExternalContext()
getExternalContext in class FacesContextpublic FacesMessage.Severity getMaximumSeverity()
getMaximumSeverity in class FacesContextpublic java.util.Iterator getMessages()
getMessages in class FacesContextpublic java.util.Iterator getMessages(java.lang.String clientId)
getMessages in class FacesContextpublic RenderKit getRenderKit()
getRenderKit in class FacesContextpublic boolean getRenderResponse()
getRenderResponse in class FacesContextpublic boolean getResponseComplete()
getResponseComplete in class FacesContext
public void addMessage(java.lang.String clientId,
                       FacesMessage message)
addMessage in class FacesContextpublic void release()
release in class FacesContextpublic void renderResponse()
renderResponse in class FacesContextpublic void responseComplete()
responseComplete in class FacesContextpublic ResponseStream getResponseStream()
getResponseStream in class FacesContextpublic void setResponseStream(ResponseStream responseStream)
setResponseStream in class FacesContextpublic ResponseWriter getResponseWriter()
getResponseWriter in class FacesContextpublic void setResponseWriter(ResponseWriter responseWriter)
setResponseWriter in class FacesContextpublic UIViewRoot getViewRoot()
getViewRoot in class FacesContextpublic void setViewRoot(UIViewRoot viewRoot)
setViewRoot in class FacesContext| 
 | JSF-Spring | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||