org.jivesoftware.smackx.pubsub
Class PublishItem<T extends Item>
java.lang.Object
   org.jivesoftware.smackx.pubsub.NodeExtension
org.jivesoftware.smackx.pubsub.NodeExtension
       org.jivesoftware.smackx.pubsub.PublishItem<T>
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 to
- toPublish- The- Itemto 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 to
- toPublish- The list of- Itemto publish
 
toXML
public String toXML()
- Description copied from interface: PacketExtension
- Returns the XML representation of the PacketExtension.
 
- 
- Specified by:
- toXMLin interface- PacketExtension
- Overrides:
- toXMLin class- NodeExtension
 
- 
- Returns:
- the packet extension as XML.
 
Copyright © 2003-2007 Jive Software.