Enum CookieCompliance.Violation

    • Enum Constant Detail

      • COMMA_NOT_VALID_OCTET

        public static final CookieCompliance.Violation COMMA_NOT_VALID_OCTET
        Allow a comma as part of a cookie value
      • RESERVED_NAMES_NOT_DOLLAR_PREFIXED

        public static final CookieCompliance.Violation RESERVED_NAMES_NOT_DOLLAR_PREFIXED
        Allow cookies to have $ prefixed reserved parameters
    • Method Detail

      • values

        public static CookieCompliance.Violation[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (CookieCompliance.Violation c : CookieCompliance.Violation.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CookieCompliance.Violation valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface ComplianceViolation
        Returns:
        The name of the violation.
      • getURL

        public java.lang.String getURL()
        Specified by:
        getURL in interface ComplianceViolation
        Returns:
        A URL to the specification that provides more information regarding the requirement that may be violated.
      • getDescription

        public java.lang.String getDescription()
        Specified by:
        getDescription in interface ComplianceViolation
        Returns:
        A short description of the violation.