org.jivesoftware.smackx.pubsub
Class PublishItem<T extends Item>
java.lang.Object
org.jivesoftware.smackx.pubsub.NodeExtension
org.jivesoftware.smackx.pubsub.PublishItem<T>
- All Implemented Interfaces:
- PacketExtension
public class PublishItem<T extends Item>
- extends NodeExtension
Represents a request to publish an item(s) to a specific node.
- Author:
- Robin Collier
Method Summary |
String |
toXML()
Returns the XML representation of the PacketExtension. |
items
protected Collection<T extends Item> items
PublishItem
public PublishItem(String nodeId,
T toPublish)
- Construct a request to publish an item to a node.
- Parameters:
nodeId
- The node to publish totoPublish
- The Item
to publish
PublishItem
public PublishItem(String nodeId,
Collection<T> toPublish)
- Construct a request to publish multiple items to a node.
- Parameters:
nodeId
- The node to publish totoPublish
- The list of Item
to publish
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.