# Uses of Class
org.htmlunit.util.Cookie

Packages that use Cookie
Package
Description
org.htmlunit
Framework classes (contains the `WebClient` class which is the main entry point).

- ## Uses of Cookie in org.htmlunit

  Methods in org.htmlunit that return Cookie
  Modifier and Type
  Method
  Description
  `Cookie`
  CookieManager.`getCookie(String name)`
  Returns the currently configured cookie with the specified name, or `null` if one does not exist.
  Methods in org.htmlunit that return types with arguments of type Cookie
  Modifier and Type
  Method
  Description
  `Set<Cookie>`
  CookieManager.`getCookies()`
  Returns the currently configured cookies, in an unmodifiable set.
  `Set<Cookie>`
  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.
  `void`
  CookieManager.`removeCookie(Cookie cookie)`
  Removes the specified cookie.