public class XMPPTCPConnectionConfiguration extends 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.
|
ConnectionConfiguration.SecurityMode
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_CONNECT_TIMEOUT
The default connect timeout in milliseconds.
|
allowNullOrEmptyUsername, host, port, proxy, serviceName
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, isSendPresence
public static int DEFAULT_CONNECT_TIMEOUT
public boolean isCompressionEnabled()
isCompressionEnabled
in class ConnectionConfiguration
public int getConnectTimeout()
DEFAULT_CONNECT_TIMEOUT
.public static XMPPTCPConnectionConfiguration.Builder builder()