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 CookieModifier and TypeMethodDescriptionReturns the currently configured cookie with the specified name, ornullif none exists.Methods in org.htmlunit that return types with arguments of type CookieModifier and TypeMethodDescriptionCookieManager.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 CookieModifier and TypeMethodDescriptionvoidAdds the specified cookie, replacing any existing cookie considered equal to it.voidCookieManager.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 CookieModifier and TypeMethodDescriptionCookieParser.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
Subclasses of Cookie in org.htmlunit.httpclientMethods in org.htmlunit.httpclient that return types with arguments of type CookieModifier and TypeMethodDescriptionHttpClientConverter.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 CookieModifier and TypeMethodDescriptionstatic booleanHttpClientConverter.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 CookieModifier and TypeMethodDescriptionstatic voidHttpClientConverter.addMatching(Set<Cookie> cookies, URL normalizedUrl, BrowserVersion browserVersion, Set<Cookie> matches) Adds all matching cookies to the provided set.static booleanHttpClientConverter.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.