Lines Matching refs:domain
57 throw new MalformedCookieException("Missing value for domain attribute");
60 throw new MalformedCookieException("Blank value for domain attribute");
73 // Validate the cookies domain attribute. NOTE: Domains without
75 // have DNS names. Since they have no dots, to domain-match the
76 // request-host and domain must be identical for the cookie to sent
79 String domain = cookie.getDomain();
80 if (domain == null) {
81 throw new MalformedCookieException("Cookie domain may not be null");
87 // domain must match host
88 if (!host.endsWith(domain)) {
89 if (domain.startsWith(".")) {
90 domain = domain.substring(1, domain.length());
92 if (!host.equals(domain)) {
94 "Illegal domain attribute \"" + domain
99 if (!host.equals(domain)) {
101 "Illegal domain attribute \"" + domain
115 String domain = cookie.getDomain();
116 if (domain == null) {
119 if (host.equals(domain)) {
122 if (!domain.startsWith(".")) {
123 domain = '.' + domain;
125 return host.endsWith(domain) || host.equals(domain.substring(1));