public static final class TcpConnectionConfiguration.Builder extends TcpConnectionConfiguration.Builder<TcpConnectionConfiguration.Builder>
A builder to create a TcpConnectionConfiguration
instance.
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
TcpConnectionConfiguration |
build()
Builds the connection configuration.
|
TcpConnectionConfiguration.Builder |
socketFactory(javax.net.SocketFactory socketFactory)
Sets a socket factory which creates the socket.
|
keepAliveInterval
channelEncryption, compressionMethods, connectTimeout, hostname, hostnameVerifier, port, proxy, secure, sslContext
public TcpConnectionConfiguration.Builder socketFactory(javax.net.SocketFactory socketFactory)
Sets a socket factory which creates the socket. This can be useful if you want connect to the legacy SSL port (usually 5223) and the connection is encrypted right from the beginning.
However, usually, there’s no need to set a custom socket factory.
socketFactory
- The socket factory.ClientConnectionConfiguration.Builder.secure(boolean)
public TcpConnectionConfiguration build()
ClientConnectionConfiguration.Builder
Builds the connection configuration.
build
in class ClientConnectionConfiguration.Builder<TcpConnectionConfiguration.Builder>
Copyright © 2014–2019 XMPP.rocks. All rights reserved.