Enum Class CookieState

java.lang.Object
java.lang.Enum<CookieState>
com.linecorp.armeria.client.cookie.CookieState
All Implemented Interfaces:
Serializable, Comparable<CookieState>, java.lang.constant.Constable

public enum CookieState extends Enum<CookieState>
The possible states of a Cookie in a CookieJar.
See Also:
CookieJar.state(Cookie)
  • Enum Constant Details

    • EXISTENT

      public static final CookieState EXISTENT
      The cookie exists in the jar.
    • EXPIRED

      public static final CookieState EXPIRED
      The cookie exists in the jar but is expired.
    • NON_EXISTENT

      public static final CookieState NON_EXISTENT
      The cookie does not exist in the jar.
  • Method Details

    • values

      public static CookieState[] 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 CookieState 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