Uses of Enum Class
org.htmlunit.ReferrerPolicy
Packages that use ReferrerPolicy
Package
Description
Framework classes (contains the
WebClient
class which is the main entry point).Classes specific to HTML pages, particularly the
HtmlPage which represents
an HTML document and provides access to its content.-
Uses of ReferrerPolicy in org.htmlunit
Fields in org.htmlunit declared as ReferrerPolicyModifier and TypeFieldDescriptionstatic final ReferrerPolicyReferrerPolicy.DEFAULTThe default policy.Methods in org.htmlunit that return ReferrerPolicyModifier and TypeMethodDescriptionstatic ReferrerPolicyReferrerPolicy.fromHeader(String headerValue) Returns the policy of the value of the Referrer-Policy header: the last known token of the comma separated list.static ReferrerPolicyReferrerPolicy.fromMetaContent(String content) Returns the policy for the content of a meta element with the name 'referrer'; the legacy values ('never', 'default', 'always' and 'origin-when-crossorigin') are supported.static ReferrerPolicyReturns the policy for the given token (case-insensitive); used for the referrerpolicy attribute.WebRequest.getReferrerPolicy()INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Returns the referrer policy used to determine theRefererheader when the request is sent.static ReferrerPolicyReturns the enum constant of this class with the specified name.static ReferrerPolicy[]ReferrerPolicy.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in org.htmlunit with parameters of type ReferrerPolicyModifier and TypeMethodDescriptionvoidWebRequest.setReferrerPolicy(ReferrerPolicy referrerPolicy) INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Sets the referrer policy used to determine theRefererheader when the request is sent (for the final url, also after redirects). -
Uses of ReferrerPolicy in org.htmlunit.html
Methods in org.htmlunit.html that return ReferrerPolicyModifier and TypeMethodDescriptionHtmlPage.getReferrerPolicy()INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Returns the referrer policy of this document (from the Referrer-Policy header or a meta element with the name 'referrer').HtmlPage.getReferrerPolicy(DomElement element) INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Returns the referrer policy for a request of the given element: the policy of the referrerpolicy attribute of the element if valid, otherwise the policy of this document.Methods in org.htmlunit.html with parameters of type ReferrerPolicyModifier and TypeMethodDescriptionvoidHtmlPage.setReferrerPolicy(ReferrerPolicy referrerPolicy) INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Sets the referrer policy of this document (e.g. from a meta element).