org.apache.myfaces.context
Class FacesContextWrapper

java.lang.Object
  extended by javax.faces.context.FacesContext
      extended by org.apache.myfaces.context.FacesContextWrapper

public class FacesContextWrapper
extends FacesContext

Convenient class to wrap the current FacesContext.

Version:
$Revision: 1187700 $ $Date: 2011-10-22 07:19:37 -0500 (Sat, 22 Oct 2011) $
Author:
Manfred Geiler (latest modification by $Author: bommel $), Anton Koinov

Constructor Summary
FacesContextWrapper(FacesContext facesContext)
           
 
Method Summary
 void addMessage(String clientId, FacesMessage message)
           
 Application getApplication()
           
 Map<Object,Object> getAttributes()
           
 Iterator<String> getClientIdsWithMessages()
           
 PhaseId getCurrentPhaseId()
           
 javax.el.ELContext getELContext()
           
 ExceptionHandler getExceptionHandler()
           
 ExternalContext getExternalContext()
           
 FacesMessage.Severity getMaximumSeverity()
           
 List<FacesMessage> getMessageList()
           
 List<FacesMessage> getMessageList(String clientId)
           
 Iterator<FacesMessage> getMessages()
           
 Iterator<FacesMessage> getMessages(String clientId)
           
 PartialViewContext getPartialViewContext()
           
 RenderKit getRenderKit()
           
 boolean getRenderResponse()
           
 boolean getResponseComplete()
           
 ResponseStream getResponseStream()
           
 ResponseWriter getResponseWriter()
           
 UIViewRoot getViewRoot()
           
 boolean isPostback()
           
 void release()
           
 void renderResponse()
           
 void responseComplete()
           
 void setCurrentPhaseId(PhaseId currentPhaseId)
           
 void setExceptionHandler(ExceptionHandler exceptionHandler)
           
 void setResponseStream(ResponseStream responsestream)
           
 void setResponseWriter(ResponseWriter responsewriter)
           
 void setViewRoot(UIViewRoot viewRoot)
           
 
Methods inherited from class javax.faces.context.FacesContext
getCurrentInstance, isProcessingEvents, isProjectStage, isValidationFailed, setCurrentInstance, setProcessingEvents, validationFailed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FacesContextWrapper

public FacesContextWrapper(FacesContext facesContext)
Method Detail

getApplication

public Application getApplication()
Specified by:
getApplication in class FacesContext

getAttributes

public Map<Object,Object> getAttributes()
Overrides:
getAttributes in class FacesContext

getClientIdsWithMessages

public Iterator<String> getClientIdsWithMessages()
Specified by:
getClientIdsWithMessages in class FacesContext

getCurrentPhaseId

public PhaseId getCurrentPhaseId()
Overrides:
getCurrentPhaseId in class FacesContext

getExceptionHandler

public ExceptionHandler getExceptionHandler()
Overrides:
getExceptionHandler in class FacesContext

getExternalContext

public ExternalContext getExternalContext()
Specified by:
getExternalContext in class FacesContext

getMaximumSeverity

public FacesMessage.Severity getMaximumSeverity()
Specified by:
getMaximumSeverity in class FacesContext

getMessageList

public List<FacesMessage> getMessageList()
Overrides:
getMessageList in class FacesContext

getMessageList

public List<FacesMessage> getMessageList(String clientId)
Overrides:
getMessageList in class FacesContext

getMessages

public Iterator<FacesMessage> getMessages()
Specified by:
getMessages in class FacesContext

getMessages

public Iterator<FacesMessage> getMessages(String clientId)
Specified by:
getMessages in class FacesContext

getPartialViewContext

public PartialViewContext getPartialViewContext()
Overrides:
getPartialViewContext in class FacesContext

getRenderKit

public RenderKit getRenderKit()
Specified by:
getRenderKit in class FacesContext

getRenderResponse

public boolean getRenderResponse()
Specified by:
getRenderResponse in class FacesContext

getResponseComplete

public boolean getResponseComplete()
Specified by:
getResponseComplete in class FacesContext

setExceptionHandler

public void setExceptionHandler(ExceptionHandler exceptionHandler)
Overrides:
setExceptionHandler in class FacesContext

setResponseStream

public void setResponseStream(ResponseStream responsestream)
Specified by:
setResponseStream in class FacesContext

getResponseStream

public ResponseStream getResponseStream()
Specified by:
getResponseStream in class FacesContext

setResponseWriter

public void setResponseWriter(ResponseWriter responsewriter)
Specified by:
setResponseWriter in class FacesContext

getResponseWriter

public ResponseWriter getResponseWriter()
Specified by:
getResponseWriter in class FacesContext

setViewRoot

public void setViewRoot(UIViewRoot viewRoot)
Specified by:
setViewRoot in class FacesContext

getViewRoot

public UIViewRoot getViewRoot()
Specified by:
getViewRoot in class FacesContext

isPostback

public boolean isPostback()
Overrides:
isPostback in class FacesContext

addMessage

public void addMessage(String clientId,
                       FacesMessage message)
Specified by:
addMessage in class FacesContext

release

public void release()
Specified by:
release in class FacesContext

renderResponse

public void renderResponse()
Specified by:
renderResponse in class FacesContext

responseComplete

public void responseComplete()
Specified by:
responseComplete in class FacesContext

getELContext

public javax.el.ELContext getELContext()
Overrides:
getELContext in class FacesContext

setCurrentPhaseId

public void setCurrentPhaseId(PhaseId currentPhaseId)
Overrides:
setCurrentPhaseId in class FacesContext


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.