Class 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 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 org.jivesoftware.smack.util.dns.DNSResolver getInstance()  
      java.util.List<java.lang.Exception> initialize()  
      static boolean isSupported()  
      protected java.util.List<org.minidns.record.SRV> lookupSrvRecords0​(org.minidns.dnsname.DnsName name, java.util.List<org.jivesoftware.smack.util.rce.RemoteConnectionEndpointLookupFailure> lookupFailures, org.jivesoftware.smack.ConnectionConfiguration.DnssecMode dnssecMode)  
      static void setup()  
      • 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 Detail

      • JavaxResolver

        public JavaxResolver()
    • Method Detail

      • getInstance

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

        public static boolean isSupported()
      • setup

        public static void setup()
      • lookupSrvRecords0

        protected java.util.List<org.minidns.record.SRV> lookupSrvRecords0​(org.minidns.dnsname.DnsName name,
                                                                           java.util.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 java.util.List<java.lang.Exception> initialize()
        Specified by:
        initialize in interface org.jivesoftware.smack.initializer.SmackInitializer