public static final class SocketConnectionConfiguration.Builder extends TcpConnectionConfiguration.Builder<SocketConnectionConfiguration.Builder>
A builder to create a TcpConnectionConfiguration
instance.
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SocketConnectionConfiguration |
build()
Builds the connection configuration.
|
SocketConnectionConfiguration.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 SocketConnectionConfiguration.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 SocketConnectionConfiguration build()
ClientConnectionConfiguration.Builder
Builds the connection configuration.
build
in class ClientConnectionConfiguration.Builder<SocketConnectionConfiguration.Builder>
Copyright © 2014–2019 XMPP.rocks. All rights reserved.