Class HtmlUnitCookieStore

java.lang.Object
org.htmlunit.httpclient.HtmlUnitCookieStore
All Implemented Interfaces:
Serializable, org.apache.http.client.CookieStore

public final class HtmlUnitCookieStore extends Object implements org.apache.http.client.CookieStore, Serializable
Implementation of CookieStore like BasicCookieStore BUT using our own CookieManager as back end.
See Also:
  • Field Details

  • Constructor Details

    • HtmlUnitCookieStore

      public HtmlUnitCookieStore(CookieManager manager)
      Constructor.
      Parameters:
      manager - the CookieManager
  • Method Details

    • addCookie

      public void addCookie(org.apache.http.cookie.Cookie cookie)
      Specified by:
      addCookie in interface org.apache.http.client.CookieStore
    • getCookies

      public List<org.apache.http.cookie.Cookie> getCookies()
      Specified by:
      getCookies in interface org.apache.http.client.CookieStore
    • clearExpired

      public boolean clearExpired(Date date)
      Specified by:
      clearExpired in interface org.apache.http.client.CookieStore
    • clear

      public void clear()
      Specified by:
      clear in interface org.apache.http.client.CookieStore