Module org.htmlunit

Class HtmlUnitInsecureOriginCookieStore

java.lang.Object
org.htmlunit.httpclient.HtmlUnitInsecureOriginCookieStore
All Implemented Interfaces:
org.apache.http.client.CookieStore

public final class HtmlUnitInsecureOriginCookieStore extends Object implements org.apache.http.client.CookieStore
A CookieStore used for the response of a request to an insecure origin (http); like the browsers, a cookie that would overwrite or shadow a secure cookie is ignored (RFC 6265bis section 5.7, step 16). All other operations are delegated.
Author:
Ronald Brill
See Also:
  • Constructor Details

    • HtmlUnitInsecureOriginCookieStore

      public HtmlUnitInsecureOriginCookieStore(org.apache.http.client.CookieStore delegate)
      Ctor.
      Parameters:
      delegate - the cookie store
  • Method Details

    • addCookie

      public void addCookie(org.apache.http.cookie.Cookie cookie)
      Adds the cookie if it does not overwrite or shadow a secure 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