public interface DnsResolver
Modifier and Type | Method and Description |
---|---|
InetAddress |
resolve(URI uri)
Resolves the IP address for the given URI.
|
InetAddress resolve(URI uri) throws UnknownHostException
This method should never return null. If it's not able to resolve the IP address then it should throw an UnknownHostException
uri
- The URI to be resolvedUnknownHostException
- if no IP address for the uri
could be found.Copyright © 2022. All rights reserved.