|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.smack.util.DNSUtil
public class DNSUtil
Utility class to perform DNS lookups for XMPP services.
Constructor Summary | |
---|---|
DNSUtil()
|
Method Summary | |
---|---|
static DNSResolver |
getDNSResolver()
Returns the current DNS resolved used to perform DNS lookups. |
static List<HostAddress> |
resolveXMPPDomain(String domain)
Returns a list of HostAddresses under which the specified XMPP server can be reached at for client-to-server communication. |
static List<HostAddress> |
resolveXMPPServerDomain(String domain)
Returns a list of HostAddresses under which the specified XMPP server can be reached at for server-to-server communication. |
static void |
setDNSResolver(DNSResolver resolver)
Set the DNS resolver that should be used to perform DNS lookups. |
protected static List<HostAddress> |
sortSRVRecords(List<SRVRecord> records)
Sort a given list of SRVRecords as described in RFC 2782 Note that we follow the RFC with one exception. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DNSUtil()
Method Detail |
---|
public static void setDNSResolver(DNSResolver resolver)
resolver
- public static DNSResolver getDNSResolver()
public static List<HostAddress> resolveXMPPDomain(String domain)
As an example, a lookup for "example.com" may return "im.example.com:5269".
domain
- the domain.
public static List<HostAddress> resolveXMPPServerDomain(String domain)
As an example, a lookup for "example.com" may return "im.example.com:5269".
domain
- the domain.
protected static List<HostAddress> sortSRVRecords(List<SRVRecord> records)
records
-
|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |