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.PacketExtension
public class SubscriptionsExtension
- extends NodeExtension
Represents the element holding the list of subscription elements.
- Author:
- Robin Collier
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
getSubscriptions
public java.util.List<Subscription> getSubscriptions()
- Gets the list of subscriptions.
- Returns:
- List of subscriptions
toXML
public java.lang.String toXML()
- Specified by:
toXML
in interface org.jivesoftware.smack.packet.PacketExtension
- Overrides:
toXML
in class NodeExtension