1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-13 07:42:05 +01:00
Smack/smack-extensions/src/main/java/org/jivesoftware/smackx/caps
Florian Schmaus 717090d272 Rework incoming packet listeners and Roster
Differentiate between asynchronous and synchronous ones. Asynchronous
are the ones where the invocation order may not be the same as the order
in which the stanzas arrived.

Since it's no longer guaranteed that when a unit test calls

processPacket(stanza)

the stanza will be completely processed when the call returns, it was
necessary to extend the unit tests (mostly Roster and ChatManager) with
a packet listener that waits for his invocation. Since we now also use
LinkedHashMaps as Map for the packet listeners (SMACK-531, SMACK-424),
adding a packet listeners as last also means that it will be called as
last. We exploit this behavior change now in the unit tests.

Rename 'recvListeners' to 'syncRecvListeners' in AbstractXMPPConnection.

Rename 'rosterInitialized' to 'loaded' in Roster.

Add Roster.isLoaded().

Reset 'loaded' to false in
Roster.setOfflinePresencesAndResetLoaded() (was setOfflinePresences()).

Fixes SMACK-583, SMACK-532, SMACK-424
2015-01-07 14:35:23 +01:00
..
cache Create smack.util.stringencoder for Base64, Base32,… 2014-09-04 11:07:55 +02:00
packet Remove obsolete comment from CapsExtension 2014-12-02 18:23:16 +01:00
provider Rework Smack Provider design 2014-10-08 16:01:14 +02:00
CapsVersionAndHash.java Introduce CapsVersionAndHash 2014-12-03 13:01:13 +01:00
EntityCapsManager.java Rework incoming packet listeners and Roster 2015-01-07 14:35:23 +01:00