Class 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  
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HtmlUnitSameSiteHandler

        HtmlUnitSameSiteHandler()
    • 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 interface org.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 interface org.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 interface org.apache.http.cookie.CookieAttributeHandler
      • getAttributeName

        public java.lang.String getAttributeName()
        Specified by:
        getAttributeName in interface org.apache.http.cookie.CommonCookieAttributeHandler