Enum Class Site

java.lang.Object
java.lang.Enum<Site>
io.micronaut.http.Site
All Implemented Interfaces:
Serializable, Comparable<Site>, Constable

public enum Site extends Enum<Site>
The site relationship values of the Sec-Fetch-Site header.
Since:
5.1.12
See Also:
  • Enum Constant Details

    • CROSS_SITE

      public static final Site CROSS_SITE
    • SAME_ORIGIN

      public static final Site SAME_ORIGIN
    • SAME_SITE

      public static final Site SAME_SITE
    • NONE

      public static final Site NONE
  • Method Details

    • values

      public static Site[] 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 Site 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
    • of

      public static @Nullable Site of(String value)
      Finds the site relationship for the given Fetch Metadata value.
      Parameters:
      value - The site relationship value
      Returns:
      The matching site relationship, or null if there is no match
      Since:
      5.1.12
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Site>
      Returns:
      The site relationship value used by Fetch Metadata