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
items
protected List<Subscription> items
SubscriptionsExtension
public SubscriptionsExtension(List<Subscription> subList)
- Subscriptions to the root node
- Parameters:
subList
- The list of subscriptions
SubscriptionsExtension
public SubscriptionsExtension(String nodeId,
List<Subscription> subList)
- Subscriptions to the specified node.
- Parameters:
nodeId
- The node subscribed tosubList
- The list of subscriptions
getSubscriptions
public List<Subscription> getSubscriptions()
- Gets the list of subscriptions.
- Returns:
- List of subscriptions
toXML
public 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.