org.jivesoftware.smackx.pubsub
Class SubscriptionsExtension
java.lang.Object
org.jivesoftware.smackx.pubsub.NodeExtension
org.jivesoftware.smackx.pubsub.SubscriptionsExtension
- All Implemented Interfaces:
- PacketExtension
public class SubscriptionsExtension
- extends NodeExtension
Represents the element holding the list of subscription elements.
- Author:
- Robin Collier
Method Summary |
java.util.List<Subscription> |
getSubscriptions()
Gets the list of subscriptions. |
java.lang.String |
toXML()
Returns the XML representation of the PacketExtension. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
items
protected java.util.List<Subscription> items
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()
- Description copied from interface:
PacketExtension
- Returns the XML representation of the PacketExtension.
- Specified by:
toXML
in interface PacketExtension
- Overrides:
toXML
in class NodeExtension
- Returns:
- the packet extension as XML.
Copyright © 2003-2007 Jive Software.