|
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 java.util.List<HostAddress> |
resolveXMPPDomain(java.lang.String domain)
Returns a list of HostAddresses under which the specified XMPP server can be reached at for client-to-server communication. |
static java.util.List<HostAddress> |
resolveXMPPServerDomain(java.lang.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 java.util.List<HostAddress> |
sortSRVRecords(java.util.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 java.util.List<HostAddress> resolveXMPPDomain(java.lang.String domain)
As an example, a lookup for "example.com" may return "im.example.com:5269".
domain
- the domain.
public static java.util.List<HostAddress> resolveXMPPServerDomain(java.lang.String domain)
As an example, a lookup for "example.com" may return "im.example.com:5269".
domain
- the domain.
protected static java.util.List<HostAddress> sortSRVRecords(java.util.List<SRVRecord> records)
records
-
|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |