Class JavaxResolver
- java.lang.Object
-
- org.jivesoftware.smack.util.dns.DNSResolver
-
- org.jivesoftware.smack.util.dns.javax.JavaxResolver
-
- All Implemented Interfaces:
SmackInitializer
public class JavaxResolver extends DNSResolver implements SmackInitializer
A DNS resolver (mostly for SRV records), which makes use of the API provided in the javax.* namespace. Note that using JavaxResovler requires applications using newer Java versions (at least 11) to declare a dependency on the "sun.jdk" module.
-
-
Field Summary
-
Fields inherited from class org.jivesoftware.smack.util.dns.DNSResolver
LOGGER
-
-
Constructor Summary
Constructors Constructor Description JavaxResolver()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DNSResolver
getInstance()
List<Exception>
initialize()
static boolean
isSupported()
protected List<SRV>
lookupSrvRecords0(DnsName name, List<RemoteConnectionEndpointLookupFailure> lookupFailures, ConnectionConfiguration.DnssecMode dnssecMode)
static void
setup()
-
Methods inherited from class org.jivesoftware.smack.util.dns.DNSResolver
lookupHostAddress, lookupHostAddress0, lookupSrvRecords, shouldContinue
-
-
-
-
Constructor Detail
-
JavaxResolver
public JavaxResolver()
-
-
Method Detail
-
getInstance
public static DNSResolver getInstance()
-
isSupported
public static boolean isSupported()
-
setup
public static void setup()
-
lookupSrvRecords0
protected List<SRV> lookupSrvRecords0(DnsName name, List<RemoteConnectionEndpointLookupFailure> lookupFailures, ConnectionConfiguration.DnssecMode dnssecMode)
- Specified by:
lookupSrvRecords0
in classDNSResolver
-
initialize
public List<Exception> initialize()
- Specified by:
initialize
in interfaceSmackInitializer
-
-