Lines Matching refs:hostName
43 * Stores hostname.
68 protected static final int HOSTNAME = 1;
72 /** hostName field
74 protected String hostname;
86 addressType = HOSTNAME;
94 public Host(String hostName) throws IllegalArgumentException {
95 if (hostName == null)
101 setHost(hostName, IPV4ADDRESS);
124 if (addressType == IPV6ADDRESS && !isIPv6Reference(hostname)) {
125 buffer.append('[').append(hostname).append(']');
127 buffer.append(hostname);
145 return otherHost.hostname.equals(hostname);
149 /** get the HostName field
153 return hostname;
160 return hostname;
170 if (hostname == null)
172 if (addressType == HOSTNAME) {
175 inetAddress = InetAddress.getByName(hostname);
178 dbgPrint("Could not resolve hostname " + ex);
181 rawIpAddress = hostname;
187 * Set the hostname member.
191 setHost(h, HOSTNAME);
219 hostname = host.trim();
222 if(addressType == HOSTNAME)
223 hostname = hostname.toLowerCase();
230 && (zoneStart = hostname.indexOf('%'))!= -1){
232 hostname = hostname.substring(0, zoneStart);
247 *@return true if the hostname is a DNS name
250 return addressType == HOSTNAME;
255 *@return true if the hostname is host address.
258 return addressType != HOSTNAME;
268 if (hostname == null)
272 inetAddress = InetAddress.getByName(hostname);