Enum Class BrowserFrame.ReferrerPolicy

java.lang.Object
java.lang.Enum<BrowserFrame.ReferrerPolicy>
io.jmix.ui.component.BrowserFrame.ReferrerPolicy
All Implemented Interfaces:
Serializable, Comparable<BrowserFrame.ReferrerPolicy>, Constable
Enclosing interface:
BrowserFrame

public static enum BrowserFrame.ReferrerPolicy extends Enum<BrowserFrame.ReferrerPolicy>
Standard values of the attribute referrerpolicy of iframe HTML element.
  • Enum Constant Details

    • NO_REFERRER

      public static final BrowserFrame.ReferrerPolicy NO_REFERRER
      The Referer header will not be sent.
    • NO_REFERRER_WHEN_DOWNGRADE

      public static final BrowserFrame.ReferrerPolicy NO_REFERRER_WHEN_DOWNGRADE
      The Referer header will not be sent to origins without TLS (HTTPS).
    • ORIGIN

      public static final BrowserFrame.ReferrerPolicy ORIGIN
      The sent referrer will be limited to the origin of the referring page: its scheme, host, and port.
    • ORIGIN_WHEN_CROSS_ORIGIN

      public static final BrowserFrame.ReferrerPolicy ORIGIN_WHEN_CROSS_ORIGIN
      The referrer sent to other origins will be limited to the scheme, the host, and the port. Navigations on the same origin will still include the path.
    • SAME_ORIGIN

      public static final BrowserFrame.ReferrerPolicy SAME_ORIGIN
      A referrer will be sent for same origin, but cross-origin requests will contain no referrer information.
    • STRICT_ORIGIN

      public static final BrowserFrame.ReferrerPolicy STRICT_ORIGIN
      Only send the origin of the document as the referrer when the protocol security level stays the same (HTTPS->HTTPS), but don't send it to a less secure destination (HTTPS->HTTP).
    • STRICT_ORIGIN_WHEN_CROSS_ORIGIN

      public static final BrowserFrame.ReferrerPolicy STRICT_ORIGIN_WHEN_CROSS_ORIGIN
      Send a full URL when performing a same-origin request, only send the origin when the protocol security level stays the same (HTTPS->HTTPS), and send no header to a less secure destination (HTTPS->HTTP).
    • UNSAFE_URL

      public static final BrowserFrame.ReferrerPolicy UNSAFE_URL
      The referrer will include the origin and the path. This value is unsafe, because it leaks origins and paths from TLS-protected resources to insecure origins.
  • Method Details

    • values

      public static BrowserFrame.ReferrerPolicy[] 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 BrowserFrame.ReferrerPolicy 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
    • getValue

      public String getValue()