@Immutable public class RFC2965DomainAttributeHandler extends java.lang.Object implements CookieAttributeHandler
| 构造器和说明 |
|---|
RFC2965DomainAttributeHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
domainMatch(java.lang.String host,
java.lang.String domain)
Performs domain-match as defined by the RFC2965.
|
boolean |
match(Cookie cookie,
CookieOrigin origin)
Match cookie domain attribute.
|
void |
parse(SetCookie cookie,
java.lang.String domain)
Parse cookie domain attribute.
|
void |
validate(Cookie cookie,
CookieOrigin origin)
Validate cookie domain attribute.
|
public void parse(SetCookie cookie, java.lang.String domain) throws MalformedCookieException
parse 在接口中 CookieAttributeHandlercookie - Cookie to be updateddomain - cookie attribute value from the cookie response headerMalformedCookieExceptionpublic boolean domainMatch(java.lang.String host,
java.lang.String domain)
Host A's name domain-matches host B's if
host - host name where cookie is received from or being sent to.domain - The cookie domain attribute.public void validate(Cookie cookie, CookieOrigin origin) throws MalformedCookieException
validate 在接口中 CookieAttributeHandlercookie - Cookie to validateorigin - the cookie source to validate againstMalformedCookieException - if cookie validation fails for this attributepublic boolean match(Cookie cookie, CookieOrigin origin)
match 在接口中 CookieAttributeHandlercookie - Cookie to matchorigin - the cookie source to match against