Searched defs:getHostName (Results 1 - 3 of 3) sorted by relevance

/libcore/luni/src/main/java/java/net/
H A DInetSocketAddress.java152 public final String getHostName() { method in class:InetSocketAddress
153 return (addr != null) ? addr.getHostName() : hostname;
158 * Unlike {@link #getHostName}, this method will never cause a DNS lookup.
H A DInetAddress.java50 * <p>An {@code InetAddress} may have a hostname (accessible via {@code getHostName}), but may not,
304 public String getHostName() { method in class:InetAddress
/libcore/support/src/test/java/tests/http/
H A DMockWebServer.java89 public String getHostName() { method in class:MockWebServer
90 return InetAddress.getLoopbackAddress().getHostName();
94 return new Proxy(Proxy.Type.HTTP, new InetSocketAddress(getHostName(), getPort()));
104 ? new URL("https://" + getHostName() + ":" + getPort() + path)
105 : new URL("http://" + getHostName() + ":" + getPort() + path);

Completed in 68 milliseconds