|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.faces.context.FacesContext org.apache.shale.test.mock.MockFacesContext
public class MockFacesContext
Mock implementation of FacesContext
.
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 |
---|
getCurrentInstance, getELContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.FacesContext
public Iterator getClientIdsWithMessages()
getClientIdsWithMessages
in class javax.faces.context.FacesContext
public javax.faces.context.ExternalContext getExternalContext()
getExternalContext
in class javax.faces.context.FacesContext
public javax.faces.application.FacesMessage.Severity getMaximumSeverity()
getMaximumSeverity
in class javax.faces.context.FacesContext
public Iterator getMessages()
getMessages
in class javax.faces.context.FacesContext
public Iterator getMessages(String clientId)
getMessages
in class javax.faces.context.FacesContext
public javax.faces.render.RenderKit getRenderKit()
getRenderKit
in class javax.faces.context.FacesContext
public boolean getRenderResponse()
getRenderResponse
in class javax.faces.context.FacesContext
public boolean getResponseComplete()
getResponseComplete
in class javax.faces.context.FacesContext
public javax.faces.context.ResponseStream getResponseStream()
getResponseStream
in class javax.faces.context.FacesContext
public void setResponseStream(javax.faces.context.ResponseStream responseStream)
setResponseStream
in class javax.faces.context.FacesContext
public javax.faces.context.ResponseWriter getResponseWriter()
getResponseWriter
in class javax.faces.context.FacesContext
public void setResponseWriter(javax.faces.context.ResponseWriter responseWriter)
setResponseWriter
in class javax.faces.context.FacesContext
public javax.faces.component.UIViewRoot getViewRoot()
getViewRoot
in class javax.faces.context.FacesContext
public 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.FacesContext
public void release()
release
in class javax.faces.context.FacesContext
public void renderResponse()
renderResponse
in class javax.faces.context.FacesContext
public 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 |