Class HtmlUnitCookieStore

  • All Implemented Interfaces:
    java.io.Serializable, org.apache.http.client.CookieStore

    public final class HtmlUnitCookieStore
    extends java.lang.Object
    implements org.apache.http.client.CookieStore, java.io.Serializable
    Implementation of CookieStore like BasicCookieStore BUT using our own CookieManager as back end.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addCookie​(org.apache.http.cookie.Cookie cookie)
      void clear()
      boolean clearExpired​(java.util.Date date)
      java.util.List<org.apache.http.cookie.Cookie> getCookies()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HtmlUnitCookieStore

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

      • addCookie

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

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

        public boolean clearExpired​(java.util.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