Enum Class FramePolicy

java.lang.Object
java.lang.Enum<FramePolicy>
oracle.dbtools.plugin.api.http.annotations.FramePolicy
All Implemented Interfaces:
Serializable, Comparable<FramePolicy>, Constable

public enum FramePolicy extends Enum<FramePolicy>
Defines how this resource wishes to restrict user-agents from framing the resource in a <frame> or <iframe> via the X-Frame-Options header.
Author:
cdivilly
  • Enum Constant Details

    • ALLOW

      public static final FramePolicy ALLOW
      Allow any origin to frame the resource
    • DENY

      public static final FramePolicy DENY
      Do not permit any origin to frame the resource
    • SAME_ORIGIN

      public static final FramePolicy SAME_ORIGIN
      Only permit resources on the same origin as this resource to frame it.
    • INHERIT

      public static final FramePolicy INHERIT
      Use the default value from the enclosing element
  • Field Details

  • Method Details

    • values

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