public class MockFacesContext
extends javax.faces.context.FacesContext
Mock implementation of FacesContext.
| Constructor and Description |
|---|
MockFacesContext() |
MockFacesContext(javax.faces.context.ExternalContext externalContext) |
MockFacesContext(javax.faces.context.ExternalContext externalContext,
javax.faces.lifecycle.Lifecycle lifecycle) |
| Modifier and Type | Method and Description |
|---|---|
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) |
getAttributes, getCurrentInstance, getCurrentPhaseId, getELContext, getExceptionHandler, getMessageList, getMessageList, getNamingContainerSeparatorChar, getPartialViewContext, getResourceLibraryContracts, isPostback, isProcessingEvents, isProjectStage, isReleased, isValidationFailed, setCurrentPhaseId, setExceptionHandler, setProcessingEvents, setResourceLibraryContracts, validationFailedprotected Map messages
public MockFacesContext()
public MockFacesContext(javax.faces.context.ExternalContext externalContext)
public MockFacesContext(javax.faces.context.ExternalContext externalContext,
javax.faces.lifecycle.Lifecycle lifecycle)
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.FacesContextpublic 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.FacesContextCopyright © 2017 The Apache Software Foundation. All rights reserved.