public class ConnectionConfiguration extends ConnectionConfiguration
Modifier and Type | Class and Description |
---|---|
static class |
ConnectionConfiguration.ConnectionType |
sessionObject
Modifier and Type | Method and Description |
---|---|
void |
setBoshService(String boshService)
Set BOSH Service URL.
|
void |
setConnectionType(ConnectionConfiguration.ConnectionType connectionType)
Set connection type.
|
void |
setDisableTLS(boolean disabled)
Enable or disable TLS usage.
|
void |
setPort(int port)
Set server port.
|
void |
setProxy(String host,
int port)
Set connection proxy.
|
void |
setProxyType(Proxy.Type type)
Set proxy type.
|
void |
setProxyUsernamePassword(String username,
String password)
Set proxy authentication credentials.
|
void |
setServer(String server)
Set server hostname.
|
void |
setUseSASL(boolean useSASL)
Enable o disable SASL.
|
setCredentialsCallback, setDomain, setResource, setUserJID, setUserJID, setUserPassword
public void setBoshService(String boshService)
bosh
.boshService
- BOSH service URLpublic void setConnectionType(ConnectionConfiguration.ConnectionType connectionType)
connectionType
- connection typepublic void setDisableTLS(boolean disabled)
disabled
- true
is TLS should be disabled.public void setPort(int port)
port
- public void setProxy(String host, int port)
host
- proxy host or null
for direct connection.port
- proxy port.public void setProxyType(Proxy.Type type)
type
- type of proxy. Available values: HTTP
and SOCKS
.public void setProxyUsernamePassword(String username, String password)
username
- proxy username.password
- proxy password.public void setServer(String server)
server
- hostnamepublic void setUseSASL(boolean useSASL)
true
.useSASL
- false
is only non-SASL authentication (XEP-0078) should be available.Copyright © 2006–2023 Tigase. All rights reserved.