public final class TcpConnectionConfiguration extends ConnectionConfiguration
| Modifier and Type | Class and Description |
|---|---|
static class |
TcpConnectionConfiguration.Builder
A builder to create a
TcpConnectionConfiguration instance. |
| Modifier and Type | Method and Description |
|---|---|
static TcpConnectionConfiguration.Builder |
builder()
Creates a new builder for this class.
|
Connection |
createConnection(XmppSession xmppSession)
A factory method to create the connection.
|
CompressionMethod |
getCompressionMethod()
Gets the compression method.
|
static TcpConnectionConfiguration |
getDefault()
Gets the default configuration.
|
int |
getKeepAliveInterval()
Gets the whitespace keep-alive interval.
|
SocketFactory |
getSocketFactory()
Gets the socket factory.
|
static void |
setDefault(TcpConnectionConfiguration configuration)
Sets the default configuration.
|
getHostname, getHostnameVerifier, getPort, getProxy, getSSLContext, isSecurepublic static TcpConnectionConfiguration.Builder builder()
public static TcpConnectionConfiguration getDefault()
public static void setDefault(TcpConnectionConfiguration configuration)
configuration - The default configuration.public Connection createConnection(XmppSession xmppSession)
ConnectionConfigurationcreateConnection in class ConnectionConfigurationxmppSession - The XMPP session, which is associated with the connection.public int getKeepAliveInterval()
public SocketFactory getSocketFactory()
public CompressionMethod getCompressionMethod()
Copyright © 2014 XMPP.rocks. All rights reserved.