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.ExtensionElement,org.jivesoftware.smack.packet.FullyQualifiedElement,org.jivesoftware.smack.packet.NamedElement,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 classSubscriptionsExtension.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 java.util.List<Subscription>getSubscriptions()Gets the list of subscriptions.java.lang.CharSequencetoXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)-
Methods inherited from class org.jivesoftware.smackx.pubsub.NodeExtension
getElementName, getNamespace, getNode, getPubSubNamespace, toString
-
-
-
-
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
-
toXML
public java.lang.CharSequence toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
- Specified by:
toXMLin interfaceorg.jivesoftware.smack.packet.Element- Overrides:
toXMLin classNodeExtension
-
-