Class PrimeFacesContext

  • All Implemented Interfaces:
    javax.faces.FacesWrapper<javax.faces.context.FacesContext>

    public class PrimeFacesContext
    extends javax.faces.context.FacesContextWrapper
    Custom FacesContextWrapper to init and release our PrimeRequestContext.
    • Constructor Summary

      Constructors 
      Constructor Description
      PrimeFacesContext​(javax.faces.context.FacesContext wrapped)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addMessage​(String clientId, javax.faces.application.FacesMessage message)  
      static CspState getCspState​(javax.faces.context.FacesContext context)  
      javax.faces.context.ExternalContext getExternalContext()  
      javax.faces.context.FacesContext getWrapped()  
      void release()  
      void setResponseWriter​(javax.faces.context.ResponseWriter writer)  
      • Methods inherited from class javax.faces.context.FacesContextWrapper

        getApplication, getAttributes, getClientIdsWithMessages, getCurrentPhaseId, getELContext, getExceptionHandler, getMaximumSeverity, getMessageList, getMessageList, getMessages, getMessages, getNamingContainerSeparatorChar, getPartialViewContext, getRenderKit, getRenderResponse, getResourceLibraryContracts, getResponseComplete, getResponseStream, getResponseWriter, getViewRoot, isPostback, isProcessingEvents, isProjectStage, isReleased, isValidationFailed, renderResponse, responseComplete, setCurrentPhaseId, setExceptionHandler, setProcessingEvents, setResourceLibraryContracts, setResponseStream, setViewRoot, validationFailed
      • Methods inherited from class javax.faces.context.FacesContext

        getCurrentInstance, setCurrentInstance
    • Constructor Detail

      • PrimeFacesContext

        public PrimeFacesContext​(javax.faces.context.FacesContext wrapped)
    • Method Detail

      • getExternalContext

        public javax.faces.context.ExternalContext getExternalContext()
        Overrides:
        getExternalContext in class javax.faces.context.FacesContextWrapper
      • setResponseWriter

        public void setResponseWriter​(javax.faces.context.ResponseWriter writer)
        Overrides:
        setResponseWriter in class javax.faces.context.FacesContextWrapper
      • getWrapped

        public javax.faces.context.FacesContext getWrapped()
        Specified by:
        getWrapped in interface javax.faces.FacesWrapper<javax.faces.context.FacesContext>
        Overrides:
        getWrapped in class javax.faces.context.FacesContextWrapper
      • release

        public void release()
        Overrides:
        release in class javax.faces.context.FacesContextWrapper
      • addMessage

        public void addMessage​(String clientId,
                               javax.faces.application.FacesMessage message)
        Overrides:
        addMessage in class javax.faces.context.FacesContextWrapper
      • getCspState

        public static CspState getCspState​(javax.faces.context.FacesContext context)