|
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 |
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 |
---|
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 FacesContext
public java.util.Iterator getClientIdsWithMessages()
getClientIdsWithMessages
in class FacesContext
public ExternalContext getExternalContext()
getExternalContext
in class FacesContext
public FacesMessage.Severity getMaximumSeverity()
getMaximumSeverity
in class FacesContext
public java.util.Iterator getMessages()
getMessages
in class FacesContext
public java.util.Iterator getMessages(java.lang.String clientId)
getMessages
in class FacesContext
public RenderKit getRenderKit()
getRenderKit
in class FacesContext
public boolean getRenderResponse()
getRenderResponse
in class FacesContext
public boolean getResponseComplete()
getResponseComplete
in class FacesContext
public void addMessage(java.lang.String clientId, FacesMessage message)
addMessage
in class FacesContext
public void release()
release
in class FacesContext
public void renderResponse()
renderResponse
in class FacesContext
public void responseComplete()
responseComplete
in class FacesContext
public ResponseStream getResponseStream()
getResponseStream
in class FacesContext
public void setResponseStream(ResponseStream responseStream)
setResponseStream
in class FacesContext
public ResponseWriter getResponseWriter()
getResponseWriter
in class FacesContext
public void setResponseWriter(ResponseWriter responseWriter)
setResponseWriter
in class FacesContext
public UIViewRoot getViewRoot()
getViewRoot
in class FacesContext
public 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 |