Class BasicCookieStore

    • Constructor Detail

      • BasicCookieStore

        public BasicCookieStore()
    • Method Detail

      • addCookie

        public void addCookie​(Cookie cookie)
        Adds an HTTP cookie, replacing any existing equivalent cookies. If the given cookie has already expired it will not be added, but existing values will still be removed.
        Specified by:
        addCookie in interface CookieStore
        Parameters:
        cookie - the cookie to be added
        See Also:
        addCookies(Cookie[])
      • addCookies

        public void addCookies​(Cookie[] cookies)
        Adds an array of HTTP cookies. Cookies are added individually and in the given array order. If any of the given cookies has already expired it will not be added, but existing values will still be removed.
        Parameters:
        cookies - the cookies to be added
        See Also:
        addCookie(Cookie)
      • clear

        public void clear()
        Clears all cookies.
        Specified by:
        clear in interface CookieStore