Lines Matching defs:host
277 * Set cookie for a given url. The old cookie with same host/path/name will
295 * Set cookie for a given uri. The old cookie with same host/path/name will
688 * Extract the host and path out of a uri
690 * @return The host and path in the format of String[], String[0] is host
698 * The domain (i.e. host) portion of the cookie is supposed to be
718 // cookie host must have at least two periods
747 * Get the base domain for a give host. E.g. mail.google.com will return
749 * @param host The give host
752 private String getBaseDomain(String host) {
754 int nextIndex = host.indexOf(PERIOD);
755 int lastIndex = host.lastIndexOf(PERIOD);
758 nextIndex = host.indexOf(PERIOD, startIndex);
761 return host.substring(startIndex);
763 return host;
776 * @param host The default host
781 private ArrayList<Cookie> parseCookie(String host, String path,
812 cookie = new Cookie(host, path);
970 if (!value.equals(host)) {
976 // ignore the exception, value is a host name
984 if (host.endsWith(value.substring(1))) {
986 int hostLen = host.length();
988 && host.charAt(hostLen - len) != PERIOD) {