Package 

Interface DnsResolver


  • 
    public interface DnsResolver
    
                        

    Users may implement this interface to override the default DNS lookup offered by the OS.

    • Method Summary

      Modifier and Type Method Description
      abstract InetAddress resolve(URI uri) Resolves the IP address for the given URI.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • resolve

         abstract InetAddress resolve(URI uri)

        Resolves the IP address for the given URI.

        This method should never return null. If it's not able to resolve the IP address then it shouldthrow an UnknownHostException

        Parameters:
        uri - The URI to be resolved