Home | History | Annotate | Download | only in cookie

Lines Matching defs:host

83             // MAY NOT be an IP address of a host name
92 * Host A's name domain-matches host B's if
94 * <ul>their host name strings string-compare equal; or</ul>
100 * @param host host name where cookie is received from or being sent to.
102 * @return true if the specified host matches the given domain.
104 public boolean domainMatch(String host, String domain) {
105 boolean match = host.equals(domain)
106 || (domain.startsWith(".") && host.endsWith(domain));
122 String host = origin.getHost().toLowerCase(Locale.ENGLISH);
148 // The effective host name must domain-match domain attribute.
149 if (!domainMatch(host, cookieDomain)) {
152 + "\" violates RFC 2965: effective host name does not "
156 // effective host name minus domain must not contain any dots
157 String effectiveHostWithoutDomain = host.substring(
158 0, host.length() - cookieDomain.length());
162 + "effective host minus domain may not contain any dots");
166 // string match request host (case-insensitive).
167 if (!cookie.getDomain().equals(host)) {
171 + host + "\"");
186 String host = origin.getHost().toLowerCase(Locale.ENGLISH);
189 // The effective host name MUST domain-match the Domain
191 if (!domainMatch(host, cookieDomain)) {
194 // effective host name minus domain must not contain any dots
195 String effectiveHostWithoutDomain = host.substring(
196 0, host.length() - cookieDomain.length());