Enum Class SameSite

java.lang.Object
java.lang.Enum<SameSite>
cn.taketoday.session.config.SameSite
所有已实现的接口:
Serializable, Comparable<SameSite>, Constable

public enum SameSite extends Enum<SameSite>
SameSite values.
从以下版本开始:
4.0 2022/5/11 16:49
作者:
Harry Yang
  • 枚举常量详细资料

    • NONE

      public static final SameSite NONE
      Cookies are sent in both first-party and cross-origin requests.
    • LAX

      public static final SameSite LAX
      Cookies are sent in a first-party context, also when following a link to the origin site.
    • STRICT

      public static final SameSite STRICT
      Cookies are only sent in a first-party context (i.e. not when following a link to the origin site).
  • 字段详细资料

    • attributeValue

      private final String attributeValue
  • 构造器详细资料

    • SameSite

      private SameSite(String attributeValue)
  • 方法详细资料

    • values

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

      public static SameSite 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.)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - 如果参数为空值
    • attributeValue

      public String attributeValue()