public final class BoshConnectionConfiguration extends ConnectionConfiguration
BoshConnectionConfiguration boshConnectionConfiguration = BoshConnectionConfiguration.builder()
.hostname("localhost")
.port(5280)
.file("/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 |
getFile()
Gets the file 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.
|
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 getFile()
public final String getRoute()
public final boolean isUseKeySequence()
Copyright © 2014–2015 XMPP.rocks. All rights reserved.