MCPcopy Index your code
hub / github.com/HtmlUnit/htmlunit / getCookies

Method getCookies

src/main/java/org/htmlunit/CookieManager.java:74–81  ·  view source on GitHub ↗

Returns the currently configured cookies, in an unmodifiable set. If disabled, this returns an empty set. @return the currently configured cookies, in an unmodifiable set

()

Source from the content-addressed store, hash-verified

72 * @return the currently configured cookies, in an unmodifiable set
73 */
74 public synchronized Set<Cookie> getCookies() {
75 if (!isCookiesEnabled()) {
76 return Collections.emptySet();
77 }
78
79 final Set<Cookie> copy = new LinkedHashSet<>(cookies_);
80 return Collections.unmodifiableSet(copy);
81 }
82
83 /**
84 * Clears all cookies that have expired before supplied date.

Callers 10

sameSiteMethod · 0.95
httpOnlyMethod · 0.95
sameSiteMethod · 0.95
basicBehaviorMethod · 0.95
getCookiesMethod · 0.95

Calls 1

isCookiesEnabledMethod · 0.95

Tested by 9

sameSiteMethod · 0.76
httpOnlyMethod · 0.76
sameSiteMethod · 0.76
basicBehaviorMethod · 0.76