01: package com.meterware.httpunit;
02:
03: /**
04: * A listener for DNS Requests. Users may implement this interface to bypass the normal DNS lookup.
05: *
06: * @author <a href="russgold@httpunit.org">Russell Gold</a>
07: **/
08: public interface DNSListener {
09:
10: /**
11: * Returns the IP address as a string for the specified host name.
12: * Note: no validation is done to verify that the returned value is an actual IP address or
13: * that the passed host name was not an IP address.
14: **/
15: String getIpAddress(String hostName);
16:
17: }
|