Enum Class CrossOriginEmbedderPolicy

java.lang.Object
java.lang.Enum<CrossOriginEmbedderPolicy>
io.micronaut.http.server.cors.CrossOriginEmbedderPolicy
All Implemented Interfaces:
Serializable, CharSequence, Comparable<CrossOriginEmbedderPolicy>, Constable

public enum CrossOriginEmbedderPolicy extends Enum<CrossOriginEmbedderPolicy> implements CharSequence
The possible values of the Cross-Origin-Embedder-Policy header.
Since:
5.2.0
See Also:
  • Enum Constant Details

  • Method Details

    • values

      public static CrossOriginEmbedderPolicy[] 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 CrossOriginEmbedderPolicy 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 CrossOriginEmbedderPolicy of(@Nullable String value)
      Finds the policy for the given header value.
      Parameters:
      value - The header value
      Returns:
      The matching policy, or null if there is no match
      Since:
      5.2.0
    • length

      public int length()
      Specified by:
      length in interface CharSequence
    • charAt

      public char charAt(int index)
      Specified by:
      charAt in interface CharSequence
    • subSequence

      public CharSequence subSequence(int start, int end)
      Specified by:
      subSequence in interface CharSequence
    • toString

      public String toString()
      Specified by:
      toString in interface CharSequence
      Overrides:
      toString in class Enum<CrossOriginEmbedderPolicy>
      Returns:
      The Cross-Origin-Embedder-Policy header value