public final 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()
.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.
|
ConnectionConfiguration.DnssecMode, ConnectionConfiguration.SecurityMode
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_CONNECT_TIMEOUT
The default connect timeout in milliseconds.
|
allowNullOrEmptyUsername, host, hostAddress, port, proxy, xmppServiceDomain
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.
|
getAuthzid, getCallbackHandler, getCustomSSLContext, getCustomX509TrustManager, getDebuggerFactory, getDnssecMode, getEnabledSaslMechanisms, getEnabledSSLCiphers, getEnabledSSLProtocols, getHostnameVerifier, getKeystorePath, getKeystoreType, getPassword, getPKCS11Library, getProxyInfo, getResource, getSecurityMode, getServiceName, getSocketFactory, getUsername, getXMPPServiceDomain, isEnabledSaslMechanism, 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()