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 ReferrerPolicy
    Modifier and Type
    Field
    Description
    static final ReferrerPolicy
    ReferrerPolicy.DEFAULT
    The default policy.
    Methods in org.htmlunit that return ReferrerPolicy
    Modifier and Type
    Method
    Description
    ReferrerPolicy.fromHeader(String headerValue)
    Returns the policy of the value of the Referrer-Policy header: the last known token of the comma separated list.
    ReferrerPolicy.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.
    ReferrerPolicy.fromToken(String token)
    Returns 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 the Referer header when the request is sent.
    ReferrerPolicy.valueOf(String name)
    Returns the enum constant of this class with the specified name.
    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 ReferrerPolicy
    Modifier and Type
    Method
    Description
    void
    WebRequest.setReferrerPolicy(ReferrerPolicy referrerPolicy)
    INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
    Sets the referrer policy used to determine the Referer header 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 ReferrerPolicy
    Modifier and Type
    Method
    Description
    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 ReferrerPolicy
    Modifier and Type
    Method
    Description
    void
    HtmlPage.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).