public static final class BoshConnectionConfiguration.Builder extends ClientConnectionConfiguration.Builder<BoshConnectionConfiguration.Builder>
A builder to create a BoshConnectionConfiguration
instance.
Modifier and Type | Method and Description |
---|---|
BoshConnectionConfiguration |
build()
Builds the connection configuration.
|
BoshConnectionConfiguration.Builder |
path(java.lang.String path)
Sets the path on the host, e.g.
|
BoshConnectionConfiguration.Builder |
route(java.lang.String route)
Sets the route, formatted as “protocol:host:port” (e.g., “xmpp:example.com:9999”).
|
BoshConnectionConfiguration.Builder |
useKeySequence(boolean useKeySequence)
Indicates whether a key sequencing mechanism is used to secure a connection.
|
BoshConnectionConfiguration.Builder |
wait(java.time.Duration wait)
Sets the longest time that the connection manager is allowed to wait before responding to any request during the session.
|
BoshConnectionConfiguration.Builder |
wait(int wait)
Deprecated.
Use
wait(Duration) |
channelEncryption, compressionMethods, connectTimeout, hostname, hostnameVerifier, port, proxy, secure, sslContext
public BoshConnectionConfiguration.Builder path(java.lang.String path)
Sets the path on the host, e.g. “/http-bind/”
path
- The path on the host.public BoshConnectionConfiguration.Builder wait(java.time.Duration wait)
Sets the longest time that the connection manager is allowed to wait before responding to any request during the session.
wait
- The time in seconds.@Deprecated public BoshConnectionConfiguration.Builder wait(int wait)
wait(Duration)
Sets the longest time (in seconds) that the connection manager is allowed to wait before responding to any request during the session.
wait
- The time in seconds.public BoshConnectionConfiguration.Builder route(java.lang.String route)
Sets the route, formatted as “protocol:host:port” (e.g., “xmpp:example.com:9999”).
route
- The route.public BoshConnectionConfiguration.Builder useKeySequence(boolean useKeySequence)
Indicates whether a key sequencing mechanism is used to secure a connection. Note that if the connection is already secured via HTTPS, it is not necessary to use this mechanism.
useKeySequence
- If a key sequence should be used.public BoshConnectionConfiguration build()
ClientConnectionConfiguration.Builder
Builds the connection configuration.
build
in class ClientConnectionConfiguration.Builder<BoshConnectionConfiguration.Builder>
Copyright © 2014–2019 XMPP.rocks. All rights reserved.