Class HtmlUnitHttpOnlyHandler

java.lang.Object
org.htmlunit.httpclient.HtmlUnitHttpOnlyHandler
All Implemented Interfaces:
org.apache.http.cookie.CommonCookieAttributeHandler, org.apache.http.cookie.CookieAttributeHandler

final class HtmlUnitHttpOnlyHandler extends Object implements org.apache.http.cookie.CommonCookieAttributeHandler
Customized CookieAttributeHandler for handling of the httponly attribute.
  • Field Details

  • Constructor Details

    • HtmlUnitHttpOnlyHandler

      HtmlUnitHttpOnlyHandler()
  • 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 interface org.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 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 String getAttributeName()
      Specified by:
      getAttributeName in interface org.apache.http.cookie.CommonCookieAttributeHandler