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

/libcore/luni/src/main/java/java/net/
H A DInetSocketAddress.java151 public final String getHostName() { method in class:InetSocketAddress
152 return (addr != null) ? addr.getHostName() : hostname;
157 * Unlike {@link #getHostName}, this method will never cause a DNS lookup.
159 * @hide 1.7 - remember to add a link in the getHostName documentation!
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.java88 public String getHostName() { method in class:MockWebServer
89 return InetAddress.getLoopbackAddress().getHostName();
93 return new Proxy(Proxy.Type.HTTP, new InetSocketAddress(getHostName(), getPort()));
103 ? new URL("https://" + getHostName() + ":" + getPort() + path)
104 : new URL("http://" + getHostName() + ":" + getPort() + path);

Completed in 264 milliseconds