|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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".
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||