Package org.jivesoftware.smack.util
Class DNSUtil
- java.lang.Object
-
- org.jivesoftware.smack.util.DNSUtil
-
public class DNSUtil extends java.lang.Object
Utility class to perform DNS lookups for XMPP services.
-
-
Constructor Summary
Constructors Constructor Description DNSUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SmackDaneProvider
getDaneProvider()
Returns the currently active DANE provider used when DANE is enabled.static DNSResolver
getDNSResolver()
Returns the current DNS resolved used to perform DNS lookups.static void
setDaneProvider(SmackDaneProvider daneProvider)
Set the DANE provider that should be used when DANE is enabled.static void
setDNSResolver(DNSResolver resolver)
Set the DNS resolver that should be used to perform DNS lookups.
-
-
-
Constructor Detail
-
DNSUtil
public DNSUtil()
-
-
Method Detail
-
setDNSResolver
public static void setDNSResolver(DNSResolver resolver)
Set the DNS resolver that should be used to perform DNS lookups.- Parameters:
resolver
- TODO javadoc me please
-
getDNSResolver
public static DNSResolver getDNSResolver()
Returns the current DNS resolved used to perform DNS lookups.- Returns:
- the active DNSResolver
-
setDaneProvider
public static void setDaneProvider(SmackDaneProvider daneProvider)
Set the DANE provider that should be used when DANE is enabled.- Parameters:
daneProvider
- TODO javadoc me please
-
getDaneProvider
public static SmackDaneProvider getDaneProvider()
Returns the currently active DANE provider used when DANE is enabled.- Returns:
- the active DANE provider
-
-