Lines Matching defs:hostname
70 * Returns the cached InetAddress[] associated with 'hostname'. Returns null if nothing is known
71 * about 'hostname'. Returns a String suitable for use as an UnknownHostException detail
72 * message if 'hostname' is known not to exist.
74 public Object get(String hostname) {
75 AddressCacheEntry entry = cache.get(hostname);
86 * Associates the given 'addresses' with 'hostname'. The association will expire after a
89 public void put(String hostname, InetAddress[] addresses) {
90 cache.put(hostname, new AddressCacheEntry(addresses));
94 * Records that 'hostname' is known not to have any associated addresses. (I.e. insert a
97 public void putUnknownHost(String hostname, String detailMessage) {
98 cache.put(hostname, new AddressCacheEntry(detailMessage));