Package rocks.xmpp.extensions.pubsub.model
Provides XML schema implementations and configuration classes for XEP-0060:
Publish-Subscribe.
It defines an XMPP protocol extension for generic publish-subscribe functionality. The protocol enables XMPP entities to create nodes (topics) at a pubsub service and publish information at those nodes; an event notification (with or without payload) is then broadcasted to all entities that have subscribed to the node. Pubsub therefore adheres to the classic Observer design pattern and can serve as the foundation for a wide variety of applications, including news feeds, content syndication, rich presence, geolocation, workflow systems, network management systems, and any other application that requires event notifications.
-
Interface Summary Interface Description Affiliation Represents the<affiliation/>
element, which is used in both 'pubsub' and 'pubsub#owner' namespace.Item Represents an item within a publish-subscribe node.Subscription Represents the<subscription/>
element, which is used in 'pubsub', 'pubsub#event' and 'pubsub#owner' namespace. -
Class Summary Class Description NodeConfiguration Represents a standardizedDataForm
with form typehttp://jabber.org/protocol/pubsub#node_config
, which can be used to configure a pubsub node.NodeConfiguration.Builder A builder to build node configurations.NodeMetaData Represents a standardizedDataForm
with form typehttp://jabber.org/protocol/pubsub#meta-data
, which can be used to retrieve node meta data.NodeMetaData.Builder A builder class to build the meta data form.PublishOptions Represents a standardizedDataForm
with form typehttp://jabber.org/protocol/pubsub#publish-options
, which can be used to retrieve node meta data.PublishOptions.Builder A builder class to build the publish options form.PubSub The implementation of the<pubsub/>
element in thehttp://jabber.org/protocol/pubsub
namespace.PubSub.Default The<default/>
element.PubSub.Options The (subscribe)<options/>
element.PubSub.Publish The<publish/>
element.SubscribeOptions Represents a standardizedDataForm
with form typehttp://jabber.org/protocol/pubsub#subscribe_options
, which can be used to configure a node subscription.SubscribeOptions.Builder A builder for the subscribe options. -
Enum Summary Enum Description AccessModel Defines who may subscribe to a node.AffiliationState Represents the affiliations which allow to manage permissions.ChildrenAssociationPolicy The children association policy defines, who may associate leaf nodes with a collection.ItemReply Defines whether owners or publishers should receive replies to items.NodeType The type of a node.PublisherModel Defines who may publish publish to a node.PubSubFeature Represents the pubsub features.SendLastPublishedItem Defines when to send the last published item.SubscribeOptions.SubscriptionType The subscription type.SubscriptionState Represents the subscription state to a node.