Home | History | Annotate | Download | only in cookie

Lines Matching defs:domain

51             throw new MalformedCookieException("Missing value for domain attribute");
54 throw new MalformedCookieException("Blank value for domain attribute");
67 // Validate the cookies domain attribute. NOTE: Domains without
69 // have DNS names. Since they have no dots, to domain-match the
70 // request-host and domain must be identical for the cookie to sent
73 String domain = cookie.getDomain();
74 if (domain == null) {
75 throw new MalformedCookieException("Cookie domain may not be null");
79 // A Set-Cookie2 with Domain=ajax.com will be accepted.
81 // domain must match host
82 if (!host.endsWith(domain)) {
83 if (domain.startsWith(".")) {
84 domain = domain.substring(1, domain.length());
86 if (!host.equals(domain)) {
88 "Illegal domain attribute \"" + domain
89 + "\". Domain of origin: \"" + host + "\"");
93 if (!host.equals(domain)) {
95 "Illegal domain attribute \"" + domain
96 + "\". Domain of origin: \"" + host + "\"");
109 String domain = cookie.getDomain();
110 if (domain == null) {
113 if (host.equals(domain)) {
116 if (!domain.startsWith(".")) {
117 domain = '.' + domain;
119 return host.endsWith(domain) || host.equals(domain.substring(1));