Smack/smack-core/src/main/java/org/jivesoftware/smack
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
..
compress/packet Add support for XEP-0198: Stream Management 2014-09-11 09:49:16 +02:00
compression Make compressionMethod final in XMPPInputOutputStream 2014-12-19 11:15:01 +01:00
debugger Remove extra whitespace in AbstractDebugger 2014-12-30 12:07:20 +01:00
filter Add IQTypeFilter.GET_OR_SET 2015-01-07 14:35:22 +01:00
initializer Enable OSGi compliance via 'DynamicImport-Package: *' 2015-01-03 13:14:02 +01:00
packet Remove unused private field in Session 2015-01-07 14:35:23 +01:00
parsing Use CharSequence instead of String in parseContent() 2014-07-06 21:10:40 +02:00
provider Cleanup EmbeddedExtensionProvider 2015-01-01 17:49:52 +01:00
proxy Create smack.util.stringencoder for Base64, Base32,… 2014-09-04 11:07:55 +02:00
rosterstore Create smack.util.stringencoder for Base64, Base32,… 2014-09-04 11:07:55 +02:00
sasl Rework XMPP Error class design 2014-11-25 13:19:32 +01:00
util Decrease logging verbosity in FileUtils.readFile(File) 2015-01-07 14:35:23 +01:00
AbstractConnectionListener.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
AbstractXMPPConnection.java Rework incoming packet listeners and Roster 2015-01-07 14:35:23 +01:00
Chat.java Add ChatManager.createChat(String) 2014-12-30 19:55:15 +01:00
ChatManager.java Rework incoming packet listeners and Roster 2015-01-07 14:35:23 +01:00
ChatManagerListener.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
ChatMessageListener.java Improve MUC message and presence listeners 2014-10-12 18:11:02 +02:00
ConnectionConfiguration.java Re-add the login(String, String, String) method 2014-12-18 14:07:54 +01:00
ConnectionCreationListener.java Make XMPPConnection an interface 2014-05-28 08:18:41 +02:00
ConnectionListener.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
ExceptionCallback.java Add an API to send and wait async for a response 2014-08-16 00:08:53 +02:00
Manager.java Refactor FileTransfer(Manager|Negotiator) 2014-07-02 09:52:40 +02:00
MessageListener.java Improve MUC message and presence listeners 2014-10-12 18:11:02 +02:00
PacketCollector.java Assert that processPacket is not called with null 2014-12-28 18:05:04 +01:00
PacketListener.java Rework incoming packet listeners and Roster 2015-01-07 14:35:23 +01:00
PresenceListener.java Improve MUC message and presence listeners 2014-10-12 18:11:02 +02:00
ReconnectionManager.java Rework XMPP Error class design 2014-11-25 13:19:32 +01:00
Roster.java Rework incoming packet listeners and Roster 2015-01-07 14:35:23 +01:00
RosterEntry.java Return more specific types (e.g. Collection → List) 2014-11-29 13:41:49 +01:00
RosterGroup.java Return more specific types (e.g. Collection → List) 2014-11-29 13:41:49 +01:00
RosterListener.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
SASLAuthentication.java Log a warning if the server didn't report SASL mechanisms 2014-11-16 19:03:03 +01:00
SmackConfiguration.java Rename ConnectionConfigurationBuilder to Builder 2014-12-18 10:15:35 +01:00
SmackException.java Add reply timeout to NoResponseException message 2014-11-15 09:46:38 +01:00
SmackInitialization.java Add AbstractDebugger and JulDebugger 2014-11-21 18:36:26 +01:00
SynchronizationPoint.java Rework SynchronizationPoint 2014-12-17 10:29:48 +01:00
XMPPConnection.java Rework incoming packet listeners and Roster 2015-01-07 14:35:23 +01:00
XMPPConnectionRegistry.java Make XMPPConnection an interface 2014-05-28 08:18:41 +02:00
XMPPException.java Add support for XEP-0198: Stream Management 2014-09-11 09:49:16 +02:00
package.html Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00