public abstract class FacesContextWrapper extends FacesContext implements FacesWrapper<FacesContext>
Provides a simple
implementation of FacesContext that can be subclassed by
developers wishing to provide specialized behavior to an existing
FacesContext instance. The default implementation of all
methods is to call through to the wrapped FacesContext
instance.
Usage: extend this class and override getWrapped() to
return the instance being wrapping.
| Constructor and Description |
|---|
FacesContextWrapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMessage(String clientId,
FacesMessage message)
The default behavior of this method is to
call
FacesContext.addMessage(String, FacesMessage)
on the wrapped FacesContext object. |
Application |
getApplication()
The default behavior of this method is to
call
FacesContext.getApplication()
on the wrapped FacesContext object. |
Map<Object,Object> |
getAttributes()
The default behavior of this method is to
call
FacesContext#getAttributes()
on the wrapped FacesContext object. |
Iterator<String> |
getClientIdsWithMessages()
The default behavior of this method is to
call
FacesContext.getClientIdsWithMessages()
on the wrapped FacesContext object. |
PhaseId |
getCurrentPhaseId()
The default behavior of this method is to
call
FacesContext#getCurrentPhaseId()
on the wrapped FacesContext object. |
ELContext |
getELContext()
The default behavior of this method is to
call
FacesContext.getELContext()
on the wrapped FacesContext object. |
ExceptionHandler |
getExceptionHandler()
The default behavior of this method is to
call
FacesContext#getExceptionHandler()
on the wrapped FacesContext object. |
ExternalContext |
getExternalContext()
The default behavior of this method is to
call
FacesContext.getExternalContext()
on the wrapped FacesContext object. |
FacesMessage.Severity |
getMaximumSeverity()
The default behavior of this method is to
call
FacesContext.getMaximumSeverity()
on the wrapped FacesContext object. |
List<FacesMessage> |
getMessageList()
The default behavior of this method is to
call
FacesContext#getMessageList()
on the wrapped FacesContext object. |
List<FacesMessage> |
getMessageList(String clientId)
The default behavior of this method is to
call
FacesContext#getMessageList(String)
on the wrapped FacesContext object. |
Iterator<FacesMessage> |
getMessages()
The default behavior of this method is to
call
FacesContext.getMessages()
on the wrapped FacesContext object. |
Iterator<FacesMessage> |
getMessages(String clientId)
The default behavior of this method is to
call
FacesContext.getMessages(String)
on the wrapped FacesContext object. |
PartialViewContext |
getPartialViewContext()
The default behavior of this method is to
call
FacesContext#getPartialViewContext() ()}
on the wrapped FacesContext object. |
RenderKit |
getRenderKit()
The default behavior of this method is to
call
FacesContext.getRenderKit()
on the wrapped FacesContext object. |
boolean |
getRenderResponse()
The default behavior of this method is to
call
FacesContext.getRenderResponse()
on the wrapped FacesContext object. |
boolean |
getResponseComplete()
The default behavior of this method is to
call
FacesContext.getResponseComplete()
on the wrapped FacesContext object. |
ResponseStream |
getResponseStream()
The default behavior of this method is to
call
FacesContext.getResponseStream()
on the wrapped FacesContext object. |
ResponseWriter |
getResponseWriter()
The default behavior of this method is to
call
FacesContext.getResponseWriter()
on the wrapped FacesContext object. |
UIViewRoot |
getViewRoot()
The default behavior of this method is to
call
FacesContext.getViewRoot()
on the wrapped FacesContext object. |
abstract FacesContext |
getWrapped()
A class that implements this interface uses this method to return an instance of the class being wrapped. |
boolean |
isPostback()
The default behavior of this method is to
call
FacesContext#isPostback()
on the wrapped FacesContext object. |
boolean |
isProcessingEvents()
The default behavior of this method is to
call
javax.faces.context.FacesContext#isProcessingEvents()
on the wrapped FacesContext object. |
boolean |
isProjectStage(ProjectStage stage)
The default behavior of this method is to
call
javax.faces.context.FacesContext#isProjectStage(javax.faces.application.ProjectStage)
on the wrapped FacesContext object. |
boolean |
isReleased()
The default behavior of this method
is to call |
boolean |
isValidationFailed()
The default behavior of this method is to
call
javax.faces.context.FacesContext#isValidationFailed
on the wrapped FacesContext object. |
void |
release()
The default behavior of this method is to
call
FacesContext.release()
on the wrapped FacesContext object. |
void |
renderResponse()
The default behavior of this method is to
call
FacesContext.renderResponse()
on the wrapped FacesContext object. |
void |
responseComplete()
The default behavior of this method is to
call
FacesContext.responseComplete()
on the wrapped FacesContext object. |
void |
setCurrentPhaseId(PhaseId currentPhaseId)
The default behavior of this method is to
call
FacesContext#setCurrentPhaseId(PhaseId)
on the wrapped FacesContext object. |
void |
setExceptionHandler(ExceptionHandler exceptionHandler)
The default behavior of this method is to
call
FacesContext#setExceptionHandler(ExceptionHandler)
on the wrapped FacesContext object. |
void |
setProcessingEvents(boolean processingEvents)
The default behavior of this method is to
call
FacesContext#setProcessingEvents(boolean)
on the wrapped FacesContext object. |
void |
setResponseStream(ResponseStream responseStream)
The default behavior of this method is to
call
FacesContext.setResponseStream(ResponseStream)
on the wrapped FacesContext object. |
void |
setResponseWriter(ResponseWriter responseWriter)
The default behavior of this method is to
call
FacesContext.setResponseWriter(ResponseWriter)
on the wrapped FacesContext object. |
void |
setViewRoot(UIViewRoot root)
The default behavior of this method is to
call
FacesContext.setViewRoot(UIViewRoot)
on the wrapped FacesContext object. |
void |
validationFailed()
The default behavior of this method is to
call
javax.faces.context.FacesContext#validationFailed()
on the wrapped FacesContext object. |
getCurrentInstance, setCurrentInstancepublic abstract FacesContext getWrapped()
FacesWrapperA class that implements this interface uses this method to return an instance of the class being wrapped.
getWrapped in interface FacesWrapper<FacesContext>FacesContext instanceFacesWrapper.getWrapped()public Application getApplication()
The default behavior of this method is to
call FacesContext.getApplication()
on the wrapped FacesContext object.
getApplication in class FacesContextFacesContext.getApplication()public Iterator<String> getClientIdsWithMessages()
The default behavior of this method is to
call FacesContext.getClientIdsWithMessages()
on the wrapped FacesContext object.
getClientIdsWithMessages in class FacesContextFacesContext.getClientIdsWithMessages()public ExternalContext getExternalContext()
The default behavior of this method is to
call FacesContext.getExternalContext()
on the wrapped FacesContext object.
getExternalContext in class FacesContextFacesContext.getExternalContext()public FacesMessage.Severity getMaximumSeverity()
The default behavior of this method is to
call FacesContext.getMaximumSeverity()
on the wrapped FacesContext object.
getMaximumSeverity in class FacesContextFacesContext.getMaximumSeverity()public Iterator<FacesMessage> getMessages()
The default behavior of this method is to
call FacesContext.getMessages()
on the wrapped FacesContext object.
getMessages in class FacesContextFacesContext.getMessages()public Iterator<FacesMessage> getMessages(String clientId)
The default behavior of this method is to
call FacesContext.getMessages(String)
on the wrapped FacesContext object.
getMessages in class FacesContextclientId - The client identifier for which messages are
requested, or null for messages not associated with
any client identifierFacesContext.getMessages(String)public RenderKit getRenderKit()
The default behavior of this method is to
call FacesContext.getRenderKit()
on the wrapped FacesContext object.
getRenderKit in class FacesContextFacesContext.getRenderKit()public boolean getRenderResponse()
The default behavior of this method is to
call FacesContext.getRenderResponse()
on the wrapped FacesContext object.
getRenderResponse in class FacesContextFacesContext.getRenderResponse()public boolean getResponseComplete()
The default behavior of this method is to
call FacesContext.getResponseComplete()
on the wrapped FacesContext object.
getResponseComplete in class FacesContextFacesContext.getResponseComplete()public ResponseStream getResponseStream()
The default behavior of this method is to
call FacesContext.getResponseStream()
on the wrapped FacesContext object.
getResponseStream in class FacesContextFacesContext.getResponseStream()public void setResponseStream(ResponseStream responseStream)
The default behavior of this method is to
call FacesContext.setResponseStream(ResponseStream)
on the wrapped FacesContext object.
setResponseStream in class FacesContextresponseStream - The new ResponseStream for this responseFacesContext.setResponseStream(ResponseStream)public ResponseWriter getResponseWriter()
The default behavior of this method is to
call FacesContext.getResponseWriter()
on the wrapped FacesContext object.
getResponseWriter in class FacesContextFacesContext.getResponseWriter()public void setResponseWriter(ResponseWriter responseWriter)
The default behavior of this method is to
call FacesContext.setResponseWriter(ResponseWriter)
on the wrapped FacesContext object.
setResponseWriter in class FacesContextresponseWriter - The new ResponseWriter for this responseFacesContext.setResponseWriter(ResponseWriter)public UIViewRoot getViewRoot()
The default behavior of this method is to
call FacesContext.getViewRoot()
on the wrapped FacesContext object.
getViewRoot in class FacesContextFacesContext.getViewRoot()public void setViewRoot(UIViewRoot root)
The default behavior of this method is to
call FacesContext.setViewRoot(UIViewRoot)
on the wrapped FacesContext object.
setViewRoot in class FacesContextroot - The new component UIViewRoot componentFacesContext.setViewRoot(UIViewRoot)public void addMessage(String clientId, FacesMessage message)
The default behavior of this method is to
call FacesContext.addMessage(String, FacesMessage)
on the wrapped FacesContext object.
addMessage in class FacesContextclientId - The client identifier with which this message is
associated (if any)message - The message to be appendedFacesContext.addMessage(String, FacesMessage)public boolean isReleased()
The default behavior of this method
is to call FacesContext#isReleased on the wrapped FacesContext object.
javax.faces.context.FacesContext#isReleasedpublic void release()
The default behavior of this method is to
call FacesContext.release()
on the wrapped FacesContext object.
release in class FacesContextFacesContext.release()public void renderResponse()
The default behavior of this method is to
call FacesContext.renderResponse()
on the wrapped FacesContext object.
renderResponse in class FacesContextFacesContext.renderResponse()public void responseComplete()
The default behavior of this method is to
call FacesContext.responseComplete()
on the wrapped FacesContext object.
responseComplete in class FacesContextFacesContext.responseComplete()public Map<Object,Object> getAttributes()
The default behavior of this method is to
call FacesContext#getAttributes()
on the wrapped FacesContext object.
javax.faces.context.FacesContext#getAttributes()public PartialViewContext getPartialViewContext()
The default behavior of this method is to
call FacesContext#getPartialViewContext() ()}
on the wrapped FacesContext object.
javax.faces.context.FacesContext#getPartialViewContext()public ELContext getELContext()
The default behavior of this method is to
call FacesContext.getELContext()
on the wrapped FacesContext object.
getELContext in class FacesContextFacesContext.getELContext()public ExceptionHandler getExceptionHandler()
The default behavior of this method is to
call FacesContext#getExceptionHandler()
on the wrapped FacesContext object.
javax.faces.context.FacesContext#getExceptionHandler()public void setExceptionHandler(ExceptionHandler exceptionHandler)
The default behavior of this method is to
call FacesContext#setExceptionHandler(ExceptionHandler)
on the wrapped FacesContext object.
javax.faces.context.FacesContext#setExceptionHandler(ExceptionHandler)public List<FacesMessage> getMessageList()
The default behavior of this method is to
call FacesContext#getMessageList()
on the wrapped FacesContext object.
javax.faces.context.FacesContext#getMessageList()public List<FacesMessage> getMessageList(String clientId)
The default behavior of this method is to
call FacesContext#getMessageList(String)
on the wrapped FacesContext object.
javax.faces.context.FacesContext#getMessageList(String)public boolean isPostback()
The default behavior of this method is to
call FacesContext#isPostback()
on the wrapped FacesContext object.
javax.faces.context.FacesContext#isPostback()public PhaseId getCurrentPhaseId()
The default behavior of this method is to
call FacesContext#getCurrentPhaseId()
on the wrapped FacesContext object.
javax.faces.context.FacesContext#getCurrentPhaseId()public void setCurrentPhaseId(PhaseId currentPhaseId)
The default behavior of this method is to
call FacesContext#setCurrentPhaseId(PhaseId)
on the wrapped FacesContext object.
javax.faces.context.FacesContext#setCurrentPhaseId(PhaseId)public boolean isValidationFailed()
The default behavior of this method is to
call javax.faces.context.FacesContext#isValidationFailed
on the wrapped FacesContext object.
FacesContext#isValidationFailedpublic void validationFailed()
The default behavior of this method is to
call javax.faces.context.FacesContext#validationFailed()
on the wrapped FacesContext object.
FacesContext#validationFailed()public void setProcessingEvents(boolean processingEvents)
The default behavior of this method is to
call FacesContext#setProcessingEvents(boolean)
on the wrapped FacesContext object.
javax.faces.context.FacesContext#setProcessingEvents(boolean)public boolean isProcessingEvents()
The default behavior of this method is to
call javax.faces.context.FacesContext#isProcessingEvents()
on the wrapped FacesContext object.
FacesContext#isProcessingEvents()public boolean isProjectStage(ProjectStage stage)
The default behavior of this method is to
call javax.faces.context.FacesContext#isProjectStage(javax.faces.application.ProjectStage)
on the wrapped FacesContext object.
FacesContext#isProjectStage(javax.faces.application.ProjectStage)Copyright © 2012 JBoss by Red Hat. All Rights Reserved.