public final class BoshConnectionConfiguration extends ConnectionConfiguration
BoshConnectionConfiguration boshConnectionConfiguration = BoshConnectionConfiguration.builder()
.hostname("localhost")
.port(5280)
.path("/http-bind/")
.build();
The above sample configuration will connect to http://localhost:5280/http-bind/.
This class is immutable.
TcpConnectionConfiguration,
BoshConnection| Modifier and Type | Class and Description |
|---|---|
static class |
BoshConnectionConfiguration.Builder
A builder to create a
BoshConnectionConfiguration instance. |
| Modifier and Type | Method and Description |
|---|---|
static BoshConnectionConfiguration.Builder |
builder()
Creates a new builder.
|
Connection |
createConnection(XmppSession xmppSession)
A factory method to create the connection.
|
static BoshConnectionConfiguration |
getDefault()
Gets the default configuration.
|
String |
getPath()
Gets the path on the host, e.g.
|
String |
getRoute()
Gets the route.
|
int |
getWait()
Gets the longest time (in seconds) that the connection manager is allowed to wait before responding to any request during the session.
|
boolean |
isUseKeySequence()
If the connection is secured via a key sequence mechanism.
|
static void |
setDefault(BoshConnectionConfiguration configuration)
Sets the default configuration.
|
String |
toString() |
getCompressionMethods, getConnectTimeout, getHostname, getHostnameVerifier, getPort, getProxy, getSSLContext, isSecurepublic static BoshConnectionConfiguration getDefault()
public static void setDefault(BoshConnectionConfiguration configuration)
configuration - The default configuration.public static BoshConnectionConfiguration.Builder builder()
public Connection createConnection(XmppSession xmppSession)
ConnectionConfigurationcreateConnection in class ConnectionConfigurationxmppSession - The XMPP session, which is associated with the connection.public final int getWait()
public final String getPath()
public final String getRoute()
public final boolean isUseKeySequence()
public final String toString()
toString in class ConnectionConfigurationCopyright © 2014–2017 XMPP.rocks. All rights reserved.