|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.context.FacesContext
org.apache.myfaces.test.mock.MockFacesContext
public class MockFacesContext
Mock implementation of FacesContext.
| Field Summary | |
|---|---|
protected Map |
messages
|
| Constructor Summary | |
|---|---|
MockFacesContext()
|
|
MockFacesContext(javax.faces.context.ExternalContext externalContext)
|
|
MockFacesContext(javax.faces.context.ExternalContext externalContext,
javax.faces.lifecycle.Lifecycle lifecycle)
|
|
| Method Summary | |
|---|---|
void |
addMessage(String clientId,
javax.faces.application.FacesMessage message)
|
javax.faces.application.Application |
getApplication()
|
Iterator |
getClientIdsWithMessages()
|
javax.faces.context.ExternalContext |
getExternalContext()
|
javax.faces.application.FacesMessage.Severity |
getMaximumSeverity()
|
Iterator |
getMessages()
|
Iterator |
getMessages(String clientId)
|
javax.faces.render.RenderKit |
getRenderKit()
|
boolean |
getRenderResponse()
|
boolean |
getResponseComplete()
|
javax.faces.context.ResponseStream |
getResponseStream()
|
javax.faces.context.ResponseWriter |
getResponseWriter()
|
javax.faces.component.UIViewRoot |
getViewRoot()
|
void |
release()
|
void |
renderResponse()
|
void |
responseComplete()
|
void |
setApplication(javax.faces.application.Application application)
Set the Application instance for this instance. |
static void |
setCurrentInstance(javax.faces.context.FacesContext facesContext)
Set the FacesContext instance for this instance. |
void |
setExternalContext(javax.faces.context.ExternalContext externalContext)
Set the ExternalContext instance for this instance. |
void |
setResponseStream(javax.faces.context.ResponseStream responseStream)
|
void |
setResponseWriter(javax.faces.context.ResponseWriter responseWriter)
|
void |
setViewRoot(javax.faces.component.UIViewRoot viewRoot)
|
| Methods inherited from class javax.faces.context.FacesContext |
|---|
getAttributes, getCurrentInstance, getCurrentPhaseId, getELContext, getExceptionHandler, getMessageList, getMessageList, getPartialViewContext, isPostback, isProcessingEvents, isProjectStage, isValidationFailed, setCurrentPhaseId, setExceptionHandler, setProcessingEvents, validationFailed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Map messages
| Constructor Detail |
|---|
public MockFacesContext()
public MockFacesContext(javax.faces.context.ExternalContext externalContext)
public MockFacesContext(javax.faces.context.ExternalContext externalContext,
javax.faces.lifecycle.Lifecycle lifecycle)
| Method Detail |
|---|
public void setApplication(javax.faces.application.Application application)
Set the Application instance for this instance.
application - The new Applicationpublic void setExternalContext(javax.faces.context.ExternalContext externalContext)
Set the ExternalContext instance for this instance.
externalContext - The new ExternalContextpublic static void setCurrentInstance(javax.faces.context.FacesContext facesContext)
Set the FacesContext instance for this instance.
facesContext - The new FacesContextpublic javax.faces.application.Application getApplication()
getApplication in class javax.faces.context.FacesContextpublic Iterator getClientIdsWithMessages()
getClientIdsWithMessages in class javax.faces.context.FacesContextpublic javax.faces.context.ExternalContext getExternalContext()
getExternalContext in class javax.faces.context.FacesContextpublic javax.faces.application.FacesMessage.Severity getMaximumSeverity()
getMaximumSeverity in class javax.faces.context.FacesContextpublic Iterator getMessages()
getMessages in class javax.faces.context.FacesContextpublic Iterator getMessages(String clientId)
getMessages in class javax.faces.context.FacesContextpublic javax.faces.render.RenderKit getRenderKit()
getRenderKit in class javax.faces.context.FacesContextpublic boolean getRenderResponse()
getRenderResponse in class javax.faces.context.FacesContextpublic boolean getResponseComplete()
getResponseComplete in class javax.faces.context.FacesContextpublic javax.faces.context.ResponseStream getResponseStream()
getResponseStream in class javax.faces.context.FacesContextpublic void setResponseStream(javax.faces.context.ResponseStream responseStream)
setResponseStream in class javax.faces.context.FacesContextpublic javax.faces.context.ResponseWriter getResponseWriter()
getResponseWriter in class javax.faces.context.FacesContextpublic void setResponseWriter(javax.faces.context.ResponseWriter responseWriter)
setResponseWriter in class javax.faces.context.FacesContextpublic javax.faces.component.UIViewRoot getViewRoot()
getViewRoot in class javax.faces.context.FacesContextpublic void setViewRoot(javax.faces.component.UIViewRoot viewRoot)
setViewRoot in class javax.faces.context.FacesContext
public void addMessage(String clientId,
javax.faces.application.FacesMessage message)
addMessage in class javax.faces.context.FacesContextpublic void release()
release in class javax.faces.context.FacesContextpublic void renderResponse()
renderResponse in class javax.faces.context.FacesContextpublic void responseComplete()
responseComplete in class javax.faces.context.FacesContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||