mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-10 17:49:38 +02:00
Implement support for roster versioning
Roster versioning is defined in RFC 6121, section 2.2.6; the protocol was originally described in XEP-0237. Fixes SMACK-399
This commit is contained in:
parent
e7a2cad401
commit
c06b0a7720
14 changed files with 1300 additions and 147 deletions
|
@ -27,6 +27,7 @@ import org.jivesoftware.smack.util.dns.HostAddress;
|
|||
import javax.net.SocketFactory;
|
||||
import javax.net.ssl.SSLContext;
|
||||
import javax.security.auth.callback.CallbackHandler;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
|
@ -90,8 +91,13 @@ public class ConnectionConfiguration implements Cloneable {
|
|||
private boolean sendPresence = true;
|
||||
private boolean rosterLoadedAtLogin = true;
|
||||
private SecurityMode securityMode = SecurityMode.enabled;
|
||||
|
||||
// Holds the proxy information (such as proxyhost, proxyport, username, password etc)
|
||||
|
||||
/**
|
||||
* Permanent store for the Roster, needed for roster versioning
|
||||
*/
|
||||
private RosterStore rosterStore;
|
||||
|
||||
// Holds the proxy information (such as proxyhost, proxyport, username, password etc)
|
||||
protected ProxyInfo proxy;
|
||||
|
||||
/**
|
||||
|
@ -696,6 +702,21 @@ public class ConnectionConfiguration implements Cloneable {
|
|||
return Collections.unmodifiableList(hostAddresses);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the permanent roster store
|
||||
*/
|
||||
public void setRosterStore(RosterStore store) {
|
||||
rosterStore = store;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the permanent roster store
|
||||
*/
|
||||
public RosterStore getRosterStore() {
|
||||
return rosterStore;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* An enumeration for TLS security modes that are available when making a connection
|
||||
* to the XMPP server.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue