public 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()
.setServiceName("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).
|
boolean |
isCompressionEnabled()
Returns true if the connection is going to use stream compression.
|
getCallbackHandler, getCustomSSLContext, getEnabledSSLCiphers, getEnabledSSLProtocols, getHostnameVerifier, getKeystorePath, getKeystoreType, getPassword, getPKCS11Library, getResource, getSecurityMode, getServiceName, getSocketFactory, getUsername, isDebuggerEnabled, isLegacySessionDisabled, isSendPresencepublic static int DEFAULT_CONNECT_TIMEOUT
public boolean isCompressionEnabled()
isCompressionEnabled in class org.jivesoftware.smack.ConnectionConfigurationpublic int getConnectTimeout()
DEFAULT_CONNECT_TIMEOUT.public static XMPPTCPConnectionConfiguration.Builder builder()