|
Openfire 3.6.0 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.openfire.net.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 Map<String,DNSUtil.HostAddress> |
getDnsOverride()
Returns the internal DNS that allows to specify target IP addresses and ports to use for domains. |
static DNSUtil.HostAddress |
resolveXMPPServerDomain(String domain,
int defaultPort)
Returns the host name and port that the specified XMPP server can be reached at for server-to-server communication. |
static void |
setDnsOverride(Map<String,DNSUtil.HostAddress> dnsOverride)
Sets the internal DNS that allows to specify target IP addresses and ports to use for domains. |
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 resolveXMPPServerDomain(String domain, int defaultPort)
As an example, a lookup for "example.com" may return "im.example.com:5269".
domain
- the domain.defaultPort
- default port to return if the DNS look up fails.
public static Map<String,DNSUtil.HostAddress> getDnsOverride()
public static void setDnsOverride(Map<String,DNSUtil.HostAddress> dnsOverride)
dnsOverride
- the internal DNS that allows to specify target IP addresses and ports
to use for domains.
|
Openfire 3.6.0 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |