Enum Class ECSPMode

java.lang.Object
java.lang.Enum<ECSPMode>
com.helger.http.csp.ECSPMode
All Implemented Interfaces:
Serializable, Comparable<ECSPMode>, Constable

public enum ECSPMode extends Enum<ECSPMode>
Defines the CSP usage mode.
Since:
10.4.0
Author:
Philip Helger
  • Enum Constant Details

    • CSP_OFF

      public static final ECSPMode CSP_OFF
    • CSP_REPORTING_ONLY

      public static final ECSPMode CSP_REPORTING_ONLY
    • CSP_ON

      public static final ECSPMode CSP_ON
  • Method Details

    • values

      public static ECSPMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ECSPMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • isReportingOnly

      public boolean isReportingOnly()
    • isReporting

      public boolean isReporting()