|
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
Utilty class to perform DNS lookups for XMPP services.
Nested Class Summary | |
---|---|
static class |
DNSUtil.HostAddress
Encapsulates a hostname and port. |
Constructor Summary | |
---|---|
DNSUtil()
|
Method Summary | |
---|---|
static DNSUtil.HostAddress |
resolveXMPPDomain(String domain)
Returns the host name and port that the specified XMPP server can be reached at for client-to-server communication. |
static DNSUtil.HostAddress |
resolveXMPPServerDomain(String domain)
Returns the host name and port that the specified XMPP server can be reached at for server-to-server communication. |
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 DNSUtil.HostAddress resolveXMPPDomain(String domain)
As an example, a lookup for "example.com" may return "im.example.com:5269". Note on SRV record selection. We now check priority and weight, but we still don't do this correctly. The missing behavior is this: if we fail to reach a host based on its SRV record then we need to select another host from the other SRV records. In Smack 3.1.1 we're not going to be able to do the major system redesign to correct this.
domain
- the domain.
public static DNSUtil.HostAddress resolveXMPPServerDomain(String domain)
As an example, a lookup for "example.com" may return "im.example.com:5269".
domain
- the domain.
|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |