Package org.jivesoftware.smackx.pubsub
Class SubscriptionsExtension
- java.lang.Object
-
- org.jivesoftware.smackx.pubsub.NodeExtension
-
- org.jivesoftware.smackx.pubsub.SubscriptionsExtension
-
- All Implemented Interfaces:
org.jivesoftware.smack.packet.Element
,org.jivesoftware.smack.packet.NamedElement
,org.jivesoftware.smack.packet.XmlElement
,org.jivesoftware.smack.packet.XmlLangElement
public class SubscriptionsExtension extends NodeExtension
Represents the element holding the list of subscription elements.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SubscriptionsExtension.SubscriptionsNamespace
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<Subscription>
items
-
Constructor Summary
Constructors Constructor Description SubscriptionsExtension(java.lang.String nodeId, java.util.List<Subscription> subList)
Subscriptions to the specified node.SubscriptionsExtension(java.util.List<Subscription> subList)
Subscriptions to the root node.SubscriptionsExtension(SubscriptionsExtension.SubscriptionsNamespace subscriptionsNamespace, java.lang.String nodeId, java.util.List<Subscription> subList)
Subscriptions to the specified node.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addXml(org.jivesoftware.smack.util.XmlStringBuilder xml)
java.util.List<Subscription>
getSubscriptions()
Gets the list of subscriptions.-
Methods inherited from class org.jivesoftware.smackx.pubsub.NodeExtension
getElementName, getNamespace, getNode, getPubSubNamespace, toString, toXML
-
-
-
-
Field Detail
-
items
protected java.util.List<Subscription> items
-
-
Constructor Detail
-
SubscriptionsExtension
public SubscriptionsExtension(java.util.List<Subscription> subList)
Subscriptions to the root node.- Parameters:
subList
- The list of subscriptions
-
SubscriptionsExtension
public SubscriptionsExtension(java.lang.String nodeId, java.util.List<Subscription> subList)
Subscriptions to the specified node.- Parameters:
nodeId
- The node subscribed tosubList
- The list of subscriptions
-
SubscriptionsExtension
public SubscriptionsExtension(SubscriptionsExtension.SubscriptionsNamespace subscriptionsNamespace, java.lang.String nodeId, java.util.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 Detail
-
getSubscriptions
public java.util.List<Subscription> getSubscriptions()
Gets the list of subscriptions.- Returns:
- List of subscriptions
-
addXml
protected void addXml(org.jivesoftware.smack.util.XmlStringBuilder xml)
- Overrides:
addXml
in classNodeExtension
-
-