PublicSuffixDomainFilter@Deprecated public class PublicSuffixFilter extends Object implements CookieAttributeHandler
| Constructor and Description |
|---|
PublicSuffixFilter(CookieAttributeHandler wrapped)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
match(Cookie cookie,
CookieOrigin origin)
Deprecated.
Never matches if the cookie's domain is from the blacklist.
|
void |
parse(SetCookie cookie,
String value)
Deprecated.
Parse the given cookie attribute value and update the corresponding
Cookie property. |
void |
setExceptions(Collection<String> exceptions)
Deprecated.
Sets the exceptions from the blacklist.
|
void |
setPublicSuffixes(Collection<String> suffixes)
Deprecated.
Sets the suffix blacklist patterns.
|
void |
validate(Cookie cookie,
CookieOrigin origin)
Deprecated.
Peforms cookie validation for the given attribute value.
|
public PublicSuffixFilter(CookieAttributeHandler wrapped)
public void setPublicSuffixes(Collection<String> suffixes)
suffixes - public void setExceptions(Collection<String> exceptions)
exceptions - public boolean match(Cookie cookie, CookieOrigin origin)
match in interface CookieAttributeHandlercookie - Cookie to matchorigin - the cookie source to match againsttrue if the match is successful; false otherwisepublic void parse(SetCookie cookie, String value) throws MalformedCookieException
CookieAttributeHandlerCookie property.parse in interface CookieAttributeHandlercookie - Cookie to be updatedvalue - cookie attribute value from the cookie response headerMalformedCookieExceptionpublic void validate(Cookie cookie, CookieOrigin origin) throws MalformedCookieException
CookieAttributeHandlervalidate in interface CookieAttributeHandlercookie - Cookie to validateorigin - the cookie source to validate againstMalformedCookieException - if cookie validation fails for this attributeCopyright © 1999–2022 The Apache Software Foundation. All rights reserved.