Class JavaxResolver

java.lang.Object
org.jivesoftware.smack.util.dns.DNSResolver
org.jivesoftware.smack.util.dns.javax.JavaxResolver
All Implemented Interfaces:
org.jivesoftware.smack.initializer.SmackInitializer

public class JavaxResolver extends org.jivesoftware.smack.util.dns.DNSResolver implements org.jivesoftware.smack.initializer.SmackInitializer
A DNS resolver (mostly for SRV records), which makes use of the API provided in the javax.* namespace. Note that using JavaxResolver 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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.jivesoftware.smack.util.dns.DNSResolver
     
     
    static boolean
     
    protected List<org.minidns.record.SRV>
    lookupSrvRecords0(org.minidns.dnsname.DnsName name, List<org.jivesoftware.smack.util.rce.RemoteConnectionEndpointLookupFailure> lookupFailures, org.jivesoftware.smack.ConnectionConfiguration.DnssecMode dnssecMode)
     
    static void
     

    Methods inherited from class org.jivesoftware.smack.util.dns.DNSResolver

    lookupHostAddress, lookupHostAddress0, lookupSrvRecords, shouldContinue

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JavaxResolver

      public JavaxResolver()
  • Method Details

    • getInstance

      public static org.jivesoftware.smack.util.dns.DNSResolver getInstance()
    • isSupported

      public static boolean isSupported()
    • setup

      public static void setup()
    • lookupSrvRecords0

      protected List<org.minidns.record.SRV> lookupSrvRecords0(org.minidns.dnsname.DnsName name, List<org.jivesoftware.smack.util.rce.RemoteConnectionEndpointLookupFailure> lookupFailures, org.jivesoftware.smack.ConnectionConfiguration.DnssecMode dnssecMode)
      Specified by:
      lookupSrvRecords0 in class org.jivesoftware.smack.util.dns.DNSResolver
    • initialize

      public List<Exception> initialize()
      Specified by:
      initialize in interface org.jivesoftware.smack.initializer.SmackInitializer