Class CspPhaseListener

java.lang.Object
org.primefaces.csp.CspPhaseListener
All Implemented Interfaces:
Serializable, EventListener, javax.faces.event.PhaseListener

public class CspPhaseListener extends Object implements javax.faces.event.PhaseListener
See Also:
  • Constructor Details

    • CspPhaseListener

      public CspPhaseListener()
  • Method Details

    • afterPhase

      public void afterPhase(javax.faces.event.PhaseEvent event)
      Specified by:
      afterPhase in interface javax.faces.event.PhaseListener
    • beforePhase

      public void beforePhase(javax.faces.event.PhaseEvent event)
      Specified by:
      beforePhase in interface javax.faces.event.PhaseListener
    • getPhaseId

      public javax.faces.event.PhaseId getPhaseId()
      Specified by:
      getPhaseId in interface javax.faces.event.PhaseListener
    • initCsp

      public static void initCsp(javax.faces.context.FacesContext context, Boolean enabled, Boolean policyProvided, String reportOnlyPolicy, String customPolicy)