public static enum BrowserFrame.ReferrerPolicy extends java.lang.Enum<BrowserFrame.ReferrerPolicy>
Enum Constant and Description |
---|
NO_REFERRER
The Referer header will not be sent.
|
NO_REFERRER_WHEN_DOWNGRADE
The Referer header will not be sent to origins without TLS (HTTPS).
|
ORIGIN
The sent referrer will be limited to the origin of the referring page: its scheme, host, and port.
|
ORIGIN_WHEN_CROSS_ORIGIN
The referrer sent to other origins will be limited to the scheme, the host, and the port.
|
SAME_ORIGIN
A referrer will be sent for same origin, but cross-origin requests will contain no referrer information.
|
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
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
The referrer will include the origin and the path.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue() |
static BrowserFrame.ReferrerPolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BrowserFrame.ReferrerPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BrowserFrame.ReferrerPolicy NO_REFERRER
public static final BrowserFrame.ReferrerPolicy NO_REFERRER_WHEN_DOWNGRADE
public static final BrowserFrame.ReferrerPolicy ORIGIN
public static final BrowserFrame.ReferrerPolicy ORIGIN_WHEN_CROSS_ORIGIN
public static final BrowserFrame.ReferrerPolicy SAME_ORIGIN
public static final BrowserFrame.ReferrerPolicy STRICT_ORIGIN
public static final BrowserFrame.ReferrerPolicy STRICT_ORIGIN_WHEN_CROSS_ORIGIN
public static final BrowserFrame.ReferrerPolicy UNSAFE_URL
public static BrowserFrame.ReferrerPolicy[] values()
for (BrowserFrame.ReferrerPolicy c : BrowserFrame.ReferrerPolicy.values()) System.out.println(c);
public static BrowserFrame.ReferrerPolicy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getValue()