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 java.lang.Object implements org.apache.http.cookie.CommonCookieAttributeHandler
Customized CookieAttributeHandler for handling of the samesite attribute.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
SAMESITE_ATTR
-
Constructor Summary
Constructors Constructor Description HtmlUnitSameSiteHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAttributeName()
boolean
match(org.apache.http.cookie.Cookie cookie, org.apache.http.cookie.CookieOrigin origin)
void
parse(org.apache.http.cookie.SetCookie cookie, java.lang.String value)
void
validate(org.apache.http.cookie.Cookie cookie, org.apache.http.cookie.CookieOrigin origin)
-
-
-
Field Detail
-
SAMESITE_ATTR
private static final java.lang.String SAMESITE_ATTR
- See Also:
- Constant Field Values
-
-
Method Detail
-
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, java.lang.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
public java.lang.String getAttributeName()
- Specified by:
getAttributeName
in interfaceorg.apache.http.cookie.CommonCookieAttributeHandler
-
-