Package org.jivesoftware.smackx.pubsub
Class SubscriptionsExtension
java.lang.Object
org.jivesoftware.smackx.pubsub.NodeExtension
org.jivesoftware.smackx.pubsub.SubscriptionsExtension
- All Implemented Interfaces:
Element,NamedElement,XmlElement,XmlLangElement
Represents the element holding the list of subscription elements.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSubscriptionsExtension(String nodeId, List<Subscription> subList) Subscriptions to the specified node.SubscriptionsExtension(List<Subscription> subList) Subscriptions to the root node.SubscriptionsExtension(SubscriptionsExtension.SubscriptionsNamespace subscriptionsNamespace, String nodeId, List<Subscription> subList) Subscriptions to the specified node. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddXml(XmlStringBuilder xml) Gets the list of subscriptions.Methods inherited from class org.jivesoftware.smackx.pubsub.NodeExtension
getElementName, getNamespace, getNode, getPubSubNamespace, toString, toXMLMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jivesoftware.smack.packet.XmlElement
getLanguage, getQName
-
Field Details
-
items
-
-
Constructor Details
-
SubscriptionsExtension
Subscriptions to the root node.- Parameters:
subList- The list of subscriptions
-
SubscriptionsExtension
Subscriptions to the specified node.- Parameters:
nodeId- The node subscribed tosubList- The list of subscriptions
-
SubscriptionsExtension
public SubscriptionsExtension(SubscriptionsExtension.SubscriptionsNamespace subscriptionsNamespace, String nodeId, List<Subscription> subList) Subscriptions to the specified node.- Parameters:
subscriptionsNamespace- the namespace used by this elementnodeId- The node subscribed tosubList- The list of subscriptions- Since:
- 4.3
-
-
Method Details
-
getSubscriptions
Gets the list of subscriptions.- Returns:
- List of subscriptions
-
addXml
- Overrides:
addXmlin classNodeExtension
-