1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-06-12 22:54:50 +02:00
Smack/smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub
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
..
listener Enable more 'checkstyle' checks 2014-08-15 23:17:45 +02:00
packet Fix PubSub namespaces 2014-12-17 13:34:49 +01:00
provider Fix PubSub namespaces 2014-12-17 13:34:49 +01:00
util Make casts in PubSub unnecessary 2015-01-01 17:43:17 +01:00
AccessModel.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
Affiliation.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
AffiliationsExtension.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
ChildrenAssociationPolicy.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
CollectionNode.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
ConfigurationEvent.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
ConfigureForm.java Make FormField.Type an enum 2014-12-27 21:12:48 +01:00
ConfigureNodeFields.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
EmbeddedPacketExtension.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
EventElement.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
EventElementType.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
FormNode.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
FormNodeType.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
FormType.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
GetItemsRequest.java Remove duplicate code in pubusb LeafNode 2014-09-21 20:49:11 +02:00
Item.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
ItemDeleteEvent.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
ItemPublishEvent.java Enable more 'checkstyle' checks 2014-08-15 23:17:45 +02:00
ItemReply.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
ItemsExtension.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
LeafNode.java Enabling additional and returned extensions in getItems() 2014-09-26 16:56:08 +02:00
Node.java Rework incoming packet listeners and Roster 2015-01-07 14:35:23 +01:00
NodeEvent.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
NodeExtension.java Remove duplicate code in pubusb LeafNode 2014-09-21 20:49:11 +02:00
NodeType.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
OptionsExtension.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
PayloadItem.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
PresenceState.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
PublishItem.java Enable more 'checkstyle' checks 2014-08-15 23:17:45 +02:00
PublishModel.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
PubSubElementType.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
PubSubManager.java Make casts in PubSub unnecessary 2015-01-01 17:43:17 +01:00
RetractItem.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
SimplePayload.java Use CharSequence instead of String in parseContent() 2014-07-06 21:10:40 +02:00
SubscribeExtension.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
SubscribeForm.java Make FormField.Type an enum 2014-12-27 21:12:48 +01:00
SubscribeOptionFields.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
Subscription.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
SubscriptionEvent.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
SubscriptionsExtension.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00
UnsubscribeExtension.java Prefix subprojects with 'smack-' 2014-04-28 19:44:14 +02:00