@Immutable public class RFC2965DomainAttributeHandlerHC4 extends java.lang.Object implements org.apache.http.cookie.CookieAttributeHandler
| Constructor and Description |
|---|
RFC2965DomainAttributeHandlerHC4() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
domainMatch(java.lang.String host,
java.lang.String domain)
Performs domain-match as defined by the RFC2965.
|
boolean |
match(org.apache.http.cookie.Cookie cookie,
org.apache.http.cookie.CookieOrigin origin)
Match cookie domain attribute.
|
void |
parse(org.apache.http.cookie.SetCookie cookie,
java.lang.String domain)
Parse cookie domain attribute.
|
void |
validate(org.apache.http.cookie.Cookie cookie,
org.apache.http.cookie.CookieOrigin origin)
Validate cookie domain attribute.
|
public void parse(org.apache.http.cookie.SetCookie cookie,
java.lang.String domain)
throws org.apache.http.cookie.MalformedCookieException
parse in interface org.apache.http.cookie.CookieAttributeHandlerorg.apache.http.cookie.MalformedCookieExceptionpublic 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(org.apache.http.cookie.Cookie cookie,
org.apache.http.cookie.CookieOrigin origin)
throws org.apache.http.cookie.MalformedCookieException
validate in interface org.apache.http.cookie.CookieAttributeHandlerorg.apache.http.cookie.MalformedCookieExceptionpublic boolean match(org.apache.http.cookie.Cookie cookie,
org.apache.http.cookie.CookieOrigin origin)
match in interface org.apache.http.cookie.CookieAttributeHandlerCopyright © 1999-2015 The Apache Software Foundation. All rights reserved.