Enum Class Cookies.Option

java.lang.Object
java.lang.Enum<Cookies.Option>
org.attribyte.snook.Cookies.Option
All Implemented Interfaces:
Serializable, Comparable<Cookies.Option>, Constable
Enclosing class:
Cookies

public static enum Cookies.Option extends Enum<Cookies.Option>
Cookie options.
  • Enum Constant Details

    • SECURE_ONLY

      public static final Cookies.Option SECURE_ONLY
      Cookie is only sent if the connection is secure.
    • HTTP_ONLY

      public static final Cookies.Option HTTP_ONLY
      Cookie is not accessible to browser scripts.
  • Method Details

    • values

      public static Cookies.Option[] 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 Cookies.Option 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