public abstract class ConnectionConfiguration extends Object
All connection methods have a few properties in common, which are abstracted in this class. Among these common properties are hostname, port, proxy, security settings and a timeout.
| Modifier and Type | Class and Description |
|---|---|
static class |
ConnectionConfiguration.Builder<T extends ConnectionConfiguration.Builder<T>>
An abstract builder class for building immutable configuration objects.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Connection |
createConnection(XmppSession xmppSession)
A factory method to create the connection.
|
List<CompressionMethod> |
getCompressionMethods()
Gets the compression methods.
|
int |
getConnectTimeout()
Gets the timeout for connection establishment.
|
String |
getHostname()
Gets the hostname.
|
HostnameVerifier |
getHostnameVerifier()
Gets the hostname verifier.
|
int |
getPort()
Gets the port.
|
Proxy |
getProxy()
Gets the proxy.
|
SSLContext |
getSSLContext()
Gets the SSL context.
|
boolean |
isSecure()
Indicates whether the connection is secured by SSL.
|
public abstract Connection createConnection(XmppSession xmppSession)
xmppSession - The XMPP session, which is associated with the connection.public final String getHostname()
public final int getPort()
public final Proxy getProxy()
public final boolean isSecure()
public final SSLContext getSSLContext()
public final HostnameVerifier getHostnameVerifier()
public final int getConnectTimeout()
public final List<CompressionMethod> getCompressionMethods()
Copyright © 2014–2015 XMPP.rocks. All rights reserved.