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 Summary
ConstructorsConstructorDescriptionHtmlUnitInsecureOriginCookieStore(org.apache.http.client.CookieStore delegate) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCookie(org.apache.http.cookie.Cookie cookie) Adds the cookie if it does not overwrite or shadow a secure cookie.voidclear()booleanclearExpired(Date date) List<org.apache.http.cookie.Cookie>
-
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:
addCookiein interfaceorg.apache.http.client.CookieStore
-
getCookies
- Specified by:
getCookiesin interfaceorg.apache.http.client.CookieStore
-
clearExpired
- Specified by:
clearExpiredin interfaceorg.apache.http.client.CookieStore
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.http.client.CookieStore
-