Package org.htmlunit.httpclient
Class HtmlUnitSameSiteHandler
java.lang.Object
org.htmlunit.httpclient.HtmlUnitSameSiteHandler
- All Implemented Interfaces:
org.apache.http.cookie.CommonCookieAttributeHandler
,org.apache.http.cookie.CookieAttributeHandler
final class HtmlUnitSameSiteHandler
extends Object
implements org.apache.http.cookie.CommonCookieAttributeHandler
Customized CookieAttributeHandler for handling of the samesite attribute.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
SAMESITE_ATTR
- See Also:
-
-
Constructor Details
-
HtmlUnitSameSiteHandler
HtmlUnitSameSiteHandler()
-
-
Method Details
-
validate
public void validate(org.apache.http.cookie.Cookie cookie, org.apache.http.cookie.CookieOrigin origin) throws org.apache.http.cookie.MalformedCookieException - Specified by:
validate
in interfaceorg.apache.http.cookie.CookieAttributeHandler
- Throws:
org.apache.http.cookie.MalformedCookieException
-
parse
public void parse(org.apache.http.cookie.SetCookie cookie, String value) throws org.apache.http.cookie.MalformedCookieException - Specified by:
parse
in interfaceorg.apache.http.cookie.CookieAttributeHandler
- Throws:
org.apache.http.cookie.MalformedCookieException
-
match
public boolean match(org.apache.http.cookie.Cookie cookie, org.apache.http.cookie.CookieOrigin origin) - Specified by:
match
in interfaceorg.apache.http.cookie.CookieAttributeHandler
-
getAttributeName
- Specified by:
getAttributeName
in interfaceorg.apache.http.cookie.CommonCookieAttributeHandler
-