Package org.htmlunit.httpclient
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 java.lang.Object implements org.apache.http.cookie.CommonCookieAttributeHandler
Customized CookieAttributeHandler for handling of the httponly attribute.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
HTTPONLY_ATTR
-
Constructor Summary
Constructors Constructor Description HtmlUnitHttpOnlyHandler()
-
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
-
HTTPONLY_ATTR
private static final java.lang.String HTTPONLY_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
-
-