public class DNSUtil extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DNSUtil.HostAddress
Encapsulates a hostname and port.
|
Constructor and Description |
---|
DNSUtil() |
Modifier and Type | Method and Description |
---|---|
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.
|
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.Copyright © 2003-2007 Jive Software.