public class RemoteXmppTcpConnectionEndpoints
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RemoteXmppTcpConnectionEndpoints.Result<RCE extends org.jivesoftware.smack.util.rce.RemoteConnectionEndpoint> |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
XMPP_CLIENT_DNS_SRV_PREFIX |
static java.lang.String |
XMPP_SERVER_DNS_SRV_PREFIX |
| Constructor and Description |
|---|
RemoteXmppTcpConnectionEndpoints() |
| Modifier and Type | Method and Description |
|---|---|
static RemoteXmppTcpConnectionEndpoints.Result<Rfc6120TcpRemoteConnectionEndpoint> |
lookup(org.jivesoftware.smack.ConnectionConfiguration config)
Lookups remote connection endpoints on the server for XMPP connections over TCP taking A, AAAA and SRV resource
records into account.
|
static java.util.List<Rfc6120TcpRemoteConnectionEndpoint> |
resolveXmppServerDomain(org.minidns.dnsname.DnsName domain,
java.util.List<org.jivesoftware.smack.util.rce.RemoteConnectionEndpointLookupFailure> lookupFailures,
org.jivesoftware.smack.ConnectionConfiguration.DnssecMode dnssecMode)
Returns a list of HostAddresses under which the specified XMPP server can be reached at for server-to-server
communication.
|
static java.util.List<Rfc6120TcpRemoteConnectionEndpoint> |
resolveXmppServiceDomain(org.minidns.dnsname.DnsName domain,
java.util.List<org.jivesoftware.smack.util.rce.RemoteConnectionEndpointLookupFailure> lookupFailures,
org.jivesoftware.smack.ConnectionConfiguration.DnssecMode dnssecMode)
Returns a list of HostAddresses under which the specified XMPP server can be reached at for client-to-server
communication.
|
public static final java.lang.String XMPP_CLIENT_DNS_SRV_PREFIX
public static final java.lang.String XMPP_SERVER_DNS_SRV_PREFIX
public static RemoteXmppTcpConnectionEndpoints.Result<Rfc6120TcpRemoteConnectionEndpoint> lookup(org.jivesoftware.smack.ConnectionConfiguration config)
config - the connection configuration to lookup the endpoints for.public static java.util.List<Rfc6120TcpRemoteConnectionEndpoint> resolveXmppServiceDomain(org.minidns.dnsname.DnsName domain, java.util.List<org.jivesoftware.smack.util.rce.RemoteConnectionEndpointLookupFailure> lookupFailures, org.jivesoftware.smack.ConnectionConfiguration.DnssecMode dnssecMode)
As an example, a lookup for "example.com" may return "im.example.com:5269".
domain - the domain.lookupFailures - on optional list that will be populated with host addresses that failed to resolve.dnssecMode - DNSSec mode.public static java.util.List<Rfc6120TcpRemoteConnectionEndpoint> resolveXmppServerDomain(org.minidns.dnsname.DnsName domain, java.util.List<org.jivesoftware.smack.util.rce.RemoteConnectionEndpointLookupFailure> lookupFailures, org.jivesoftware.smack.ConnectionConfiguration.DnssecMode dnssecMode)
As an example, a lookup for "example.com" may return "im.example.com:5269".
domain - the domain.lookupFailures - a list that will be populated with host addresses that failed to resolve.dnssecMode - DNSSec mode.