java.lang.Object
io.helidon.webclient.api.DefaultDnsResolver
- All Implemented Interfaces:
DnsResolver
Default DNS resolver. Connection creation fallbacks to the standard Java approach.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic DefaultDnsResolver
create()
Create new instance.resolveAddress
(String hostname, DnsAddressLookup dnsAddressLookup) Resolve hostname toInetAddress
.boolean
Whether to use standard Java DNS resolver.
-
Method Details
-
create
Create new instance.- Returns:
- new instance
-
useDefaultJavaResolver
public boolean useDefaultJavaResolver()Description copied from interface:DnsResolver
Whether to use standard Java DNS resolver. If this method returns true,DnsResolver.resolveAddress(String, io.helidon.webclient.api.DnsAddressLookup)
method is not invoked and noDnsAddressLookup
preferences will be applied.- Specified by:
useDefaultJavaResolver
in interfaceDnsResolver
- Returns:
- use standard Java resolver
-
resolveAddress
Description copied from interface:DnsResolver
Resolve hostname toInetAddress
.- Specified by:
resolveAddress
in interfaceDnsResolver
- Parameters:
hostname
- hostname to resolvednsAddressLookup
- allowed version of the IP- Returns:
- resolved InetAddress instance
-