|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.faces.context.FacesContext de.mindmatters.faces.context.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.
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 |
public FacesContextImpl(ExternalContext externalContext)
externalContext
.
externalContext
- usually a fake contextServletExternalContextFake
Method Detail |
public Application getApplication()
public java.util.Iterator getClientIdsWithMessages()
public ExternalContext getExternalContext()
public FacesMessage.Severity getMaximumSeverity()
public java.util.Iterator getMessages()
public java.util.Iterator getMessages(java.lang.String clientId)
public RenderKit getRenderKit()
public boolean getRenderResponse()
public boolean getResponseComplete()
public void addMessage(java.lang.String clientId, FacesMessage message)
public void release()
public void renderResponse()
public void responseComplete()
public ResponseStream getResponseStream()
public void setResponseStream(ResponseStream responseStream)
public ResponseWriter getResponseWriter()
public void setResponseWriter(ResponseWriter responseWriter)
public UIViewRoot getViewRoot()
public void setViewRoot(UIViewRoot viewRoot)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |