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.CommonCookieAttributeHandlerCustomized CookieAttributeHandler for handling of the samesite attribute.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringSAMESITE_ATTR
-
Constructor Summary
Constructors Constructor Description HtmlUnitSameSiteHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAttributeName()booleanmatch(org.apache.http.cookie.Cookie cookie, org.apache.http.cookie.CookieOrigin origin)voidparse(org.apache.http.cookie.SetCookie cookie, java.lang.String value)voidvalidate(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:
validatein 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:
parsein 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:
matchin interfaceorg.apache.http.cookie.CookieAttributeHandler
-
getAttributeName
public java.lang.String getAttributeName()
- Specified by:
getAttributeNamein interfaceorg.apache.http.cookie.CommonCookieAttributeHandler
-
-