Lines Matching refs:host

44  * address as the host.
47 * (e.g., "http" is equivalent to "HTTP"). The host part is also not
50 * MUST compare the scheme and host without regard to case, but assume
63 * of an IP-based protocol to a specified host on the Internet use a
66 * {@code //<user>:<password>@<host>:<port>/<url-path>}
85 private String host;
115 host = uri.getHost();
116 // RFC 5280 says that the host should be non-null, but we allow it to
120 if (host != null) {
121 if (host.charAt(0) == '[') {
122 // Verify host is a valid IPv6 address name
123 String ipV6Host = host.substring(1, host.length()-1);
127 throw new IOException("invalid URI name (host " +
132 hostDNS = new DNSName(host);
137 hostIP = new IPAddressName(host);
139 throw new IOException("invalid URI name (host " +
165 String host = uri.getSchemeSpecificPart();
168 if (host.startsWith(".")) {
169 hostDNS = new DNSName(host.substring(1));
171 hostDNS = new DNSName(host);
173 return new URIName(uri, host, hostDNS);
183 URIName(URI uri, String host, DNSName hostDNS) {
185 this.host = host;
256 * Return the host name or IP address portion of the URIName
258 * @return host name or IP address portion of full name
261 return host;
265 * Return the host object type; if host name is a
266 * DNSName, then this host object does not include any
269 * @return host name as DNSName or IPAddressName
303 * RFC5280: For URIs, the constraint applies to the host part of the name.
304 * The constraint may specify a host or a domain. Examples would be
310 * specifies a host.
327 // only need to compare the host portion of the name
332 if (otherHost.equalsIgnoreCase(host)) {
342 // Both host portions are DNS names. Are they domains?
343 boolean thisDomain = (host.charAt(0) == '.');
386 dnsName = new DNSName(host);