@Test public void xmppClientDomainJavaXTest() { DNSResolver resolver = JavaxResolver.getInstance(); assertNotNull(resolver); DNSUtil.setDNSResolver(resolver); xmppClientDomainTest(); }
@Test public void xmppServerDomainJavaXTest() { DNSResolver resolver = JavaxResolver.getInstance(); assertNotNull(resolver); DNSUtil.setDNSResolver(resolver); xmppServerDomainTest(); }
@Test public void xmppClientDomainDNSJavaTest() { DNSResolver resolver = DNSJavaResolver.getInstance(); assertNotNull(resolver); DNSUtil.setDNSResolver(resolver); xmppClientDomainTest(); }
@Test public void xmppServerDomainDNSJavaTest() { DNSResolver resolver = DNSJavaResolver.getInstance(); assertNotNull(resolver); DNSUtil.setDNSResolver(resolver); xmppServerDomainTest(); }
public static DNSResolver getInstance() { return instance; }
public static synchronized DNSResolver getInstance() { if (instance == null && isSupported()) { instance = new JavaxResolver(); } return instance; }
/** * Set the DNS resolver that should be used to perform DNS lookups. * * @param resolver */ public static void setDNSResolver(DNSResolver resolver) { dnsResolver = resolver; }
/** * Returns the current DNS resolved used to perform DNS lookups. * * @return the active DNSResolver */ public static DNSResolver getDNSResolver() { return dnsResolver; }
/** * Returns the current DNS resolved used to perform DNS lookups. * * @return */ public static DNSResolver getDNSResolver() { return dnsResolver; }