Lines Matching defs:domain

77     private String domain;      // Domain=VALUE ... domain that sees cookie
397 * Specifies the domain within which this cookie should be presented.
399 * <p>The form of the domain name is specified by RFC 2965. A domain
407 * @param pattern a <code>String</code> containing the domain name
417 domain = pattern.toLowerCase();
419 domain = pattern;
427 * Returns the domain name set for this cookie. The form of
428 * the domain name is set by RFC 2965.
430 * @return a <code>String</code> containing the domain name
437 return domain;
713 * The utility method to check whether a host name is in a domain
722 * <p>Host A's name domain-matches host B's if:
727 * x.y.com domain-matches .Y.com but not Y.com.)</li>
730 * <p>A host isn't in a domain (RFC 2965 sec. 3.3.2) if:
735 * not domain-match the Domain attribute.</li>
754 * host is example.local, and example.local domain-matches .local.</li>
757 * @param domain the domain name to check host name with
759 * @return <tt>true</tt> if they domain-matches; <tt>false</tt> if not
761 public static boolean domainMatches(String domain, String host) {
762 if (domain == null || host == null)
765 // if there's no embedded dot in domain and domain is not .local
766 boolean isLocalDomain = ".local".equalsIgnoreCase(domain);
767 int embeddedDotInDomain = domain.indexOf('.');
769 embeddedDotInDomain = domain.indexOf('.', 1);
771 && (embeddedDotInDomain == -1 || embeddedDotInDomain == domain.length() - 1))
774 // if the host name contains no dot and the domain name is .local
779 int domainLength = domain.length();
782 // if the host name and the domain name are just string-compare euqal
783 return host.equalsIgnoreCase(domain);
790 return (H.indexOf('.') == -1 && D.equalsIgnoreCase(domain));
793 // if domain is actually .host
794 return (domain.charAt(0) == '.' &&
795 host.equalsIgnoreCase(domain.substring(1)));
823 * come from same domain (case-insensitive),
839 // 1. they come from same domain (case-insensitive),
851 * name, domain, and path.
864 int h2 = (domain!=null) ? domain.toLowerCase().hashCode() : 0;
1003 assignors.put("domain", new CookieAttributeAssignor(){