Lines Matching refs:domain

50     // the cookies are indexed by its domain and associated uri (if present)
90 // and add it to domain index
107 * 1) given uri domain-matches with, or, associated with
227 * domain contains a dot ('.').
228 * I.E.: RFC 2965 section 3.3.2 says that if host is x.y.domain.com
229 * and the cookie domain is .domain.com, then it should be rejected.
235 private boolean netscapeDomainMatches(String domain, String host)
237 if (domain == null || host == null) {
241 // if there's no embedded dot in domain and domain is not .local
242 boolean isLocalDomain = ".local".equalsIgnoreCase(domain);
243 int embeddedDotInDomain = domain.indexOf('.');
245 embeddedDotInDomain = domain.indexOf('.', 1);
247 if (!isLocalDomain && (embeddedDotInDomain == -1 || embeddedDotInDomain == domain.length() - 1)) {
251 // if the host name contains no dot and the domain name is .local
257 int domainLength = domain.length();
260 // if the host name and the domain name are just string-compare euqal
261 return host.equalsIgnoreCase(domain);
267 return (D.equalsIgnoreCase(domain));
269 // if domain is actually .host
270 return (domain.charAt(0) == '.' &&
271 host.equalsIgnoreCase(domain.substring(1)));
283 String domain = entry.getKey();
286 if ((c.getVersion() == 0 && netscapeDomainMatches(domain, host)) ||
287 (c.getVersion() == 1 && HttpCookie.domainMatches(domain, host))) {
302 // so also remove it from domain indexed store
328 // check the list of cookies associated with this domain
346 // so also remove it from domain indexed store