public final class XMPPTCPConnectionConfiguration
extends org.jivesoftware.smack.ConnectionConfiguration
You can get an instance of the configuration builder with builder() and build the final immutable connection
configuration with XMPPTCPConnectionConfiguration.Builder.build().
XMPPTCPConnectionConfiguration conf = XMPPConnectionConfiguration.builder()
.setXmppDomain("example.org").setUsernameAndPassword("user", "password")
.setCompressionEnabled(false).build();
XMPPTCPConnection connection = new XMPPTCPConnection(conf);
| Modifier and Type | Class and Description |
|---|---|
static class |
XMPPTCPConnectionConfiguration.Builder
A configuration builder for XMPP connections over TCP.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_CONNECT_TIMEOUT
The default connect timeout in milliseconds.
|
| Modifier and Type | Method and Description |
|---|---|
static XMPPTCPConnectionConfiguration.Builder |
builder() |
int |
getConnectTimeout()
How long the socket will wait until a TCP connection is established (in milliseconds).
|
getAuthzid, getCallbackHandler, getCustomSSLContext, getCustomX509TrustManager, getDebuggerFactory, getDnssecMode, getEnabledSaslMechanisms, getEnabledSSLCiphers, getEnabledSSLProtocols, getHostnameVerifier, getKeystorePath, getKeystoreType, getPassword, getPKCS11Library, getProxyInfo, getResource, getSecurityMode, getServiceName, getSocketFactory, getUsername, getXMPPServiceDomain, getXmppServiceDomainAsDnsNameIfPossible, isCompressionEnabled, isEnabledSaslMechanism, isSendPresencepublic static int DEFAULT_CONNECT_TIMEOUT
public int getConnectTimeout()
DEFAULT_CONNECT_TIMEOUT.public static XMPPTCPConnectionConfiguration.Builder builder()