PublicSuffixDomainFilter
@Deprecated public class PublicSuffixFilter extends java.lang.Object implements CookieAttributeHandler
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<java.lang.String> |
exceptions
Deprecated.
|
private PublicSuffixMatcher |
matcher
Deprecated.
|
private java.util.Collection<java.lang.String> |
suffixes
Deprecated.
|
private CookieAttributeHandler |
wrapped
Deprecated.
|
Constructor and Description |
---|
PublicSuffixFilter(CookieAttributeHandler wrapped)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
private boolean |
isForPublicSuffix(Cookie cookie)
Deprecated.
|
boolean |
match(Cookie cookie,
CookieOrigin origin)
Deprecated.
Never matches if the cookie's domain is from the blacklist.
|
void |
parse(SetCookie cookie,
java.lang.String value)
Deprecated.
Parse the given cookie attribute value and update the corresponding
Cookie property. |
void |
setExceptions(java.util.Collection<java.lang.String> exceptions)
Deprecated.
Sets the exceptions from the blacklist.
|
void |
setPublicSuffixes(java.util.Collection<java.lang.String> suffixes)
Deprecated.
Sets the suffix blacklist patterns.
|
void |
validate(Cookie cookie,
CookieOrigin origin)
Deprecated.
Peforms cookie validation for the given attribute value.
|
private final CookieAttributeHandler wrapped
private java.util.Collection<java.lang.String> exceptions
private java.util.Collection<java.lang.String> suffixes
private PublicSuffixMatcher matcher
public PublicSuffixFilter(CookieAttributeHandler wrapped)
public void setPublicSuffixes(java.util.Collection<java.lang.String> suffixes)
suffixes
- public void setExceptions(java.util.Collection<java.lang.String> exceptions)
exceptions
- public boolean match(Cookie cookie, CookieOrigin origin)
match
in interface CookieAttributeHandler
cookie
- Cookie
to matchorigin
- the cookie source to match againsttrue
if the match is successful; false
otherwisepublic void parse(SetCookie cookie, java.lang.String value) throws MalformedCookieException
CookieAttributeHandler
Cookie
property.parse
in interface CookieAttributeHandler
cookie
- Cookie
to be updatedvalue
- cookie attribute value from the cookie response headerMalformedCookieException
public void validate(Cookie cookie, CookieOrigin origin) throws MalformedCookieException
CookieAttributeHandler
validate
in interface CookieAttributeHandler
cookie
- Cookie
to validateorigin
- the cookie source to validate againstMalformedCookieException
- if cookie validation fails for this attributeprivate boolean isForPublicSuffix(Cookie cookie)