Uses of Class
org.htmlunit.http.Cookie

Packages that use Cookie
Package
Description
Framework classes (contains the WebClient class which is the main entry point).
Abstract Http support.
All the customizations we did to make HttpClient behave like a real browser.
  • Uses of Cookie in org.htmlunit

    Methods in org.htmlunit that return Cookie
    Modifier and Type
    Method
    Description
    CookieManager.getCookie(String name)
    Returns the currently configured cookie with the specified name, or null if none exists.
    Methods in org.htmlunit that return types with arguments of type Cookie
    Modifier and Type
    Method
    Description
    CookieManager.getCookies()
    Returns a snapshot of the currently configured cookies as an unmodifiable set.
    WebClient.getCookies(URL url)
    Returns the currently configured cookies applicable to the specified URL, in an unmodifiable set.
    Methods in org.htmlunit with parameters of type Cookie
    Modifier and Type
    Method
    Description
    void
    CookieManager.addCookie(Cookie cookie)
    Adds the specified cookie, replacing any existing cookie considered equal to it.
    void
    CookieManager.removeCookie(Cookie cookie)
    Removes the specified cookie, if present.
  • Uses of Cookie in org.htmlunit.http

    Methods in org.htmlunit.http that return types with arguments of type Cookie
    Modifier and Type
    Method
    Description
    static List<Cookie>
    CookieParser.parseCookie(String cookieString, URL pageUrl, BrowserVersion browserVersion)
    Parses a cookie string and returns a list of Cookie objects.
  • Uses of Cookie in org.htmlunit.httpclient

    Modifier and Type
    Class
    Description
    class 
    Wrapper for ClientCookie.
    Methods in org.htmlunit.httpclient that return types with arguments of type Cookie
    Modifier and Type
    Method
    Description
    static List<Cookie>
    HttpClientConverter.parseCookie(String cookieString, URL pageUrl, BrowserVersion browserVersion)
    Parses the specified cookie string into HtmlUnit cookie objects.
    Methods in org.htmlunit.httpclient with parameters of type Cookie
    Modifier and Type
    Method
    Description
    static boolean
    HttpClientConverter.shadowsSecureCookie(Cookie cookie, Collection<Cookie> existingCookies)
    Returns whether a (non-secure) cookie from an insecure origin would overwrite or shadow one of the given secure cookies; such a cookie is ignored (RFC 6265bis section 5.7, step 16): a secure cookie with the same name, a domain that domain-matches the domain of the new cookie (or the other way round) and a path that is path-matched by the path of the new cookie.
    Method parameters in org.htmlunit.httpclient with type arguments of type Cookie
    Modifier and Type
    Method
    Description
    static void
    HttpClientConverter.addMatching(Set<Cookie> cookies, URL normalizedUrl, BrowserVersion browserVersion, Set<Cookie> matches)
    Adds all matching cookies to the provided set.
    static boolean
    HttpClientConverter.shadowsSecureCookie(Cookie cookie, Collection<Cookie> existingCookies)
    Returns whether a (non-secure) cookie from an insecure origin would overwrite or shadow one of the given secure cookies; such a cookie is ignored (RFC 6265bis section 5.7, step 16): a secure cookie with the same name, a domain that domain-matches the domain of the new cookie (or the other way round) and a path that is path-matched by the path of the new cookie.
    static List<org.apache.http.cookie.Cookie>
    HttpClientConverter.toHttpClient(Collection<Cookie> cookies)
    Converts the specified collection of cookies into a collection of HttpClient cookies.