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
Field Summary |
protected java.util.Collection<T> |
items
|
Constructor Summary |
PublishItem(java.lang.String nodeId,
java.util.Collection<T> toPublish)
Construct a request to publish multiple items to a node. |
PublishItem(java.lang.String nodeId,
T toPublish)
Construct a request to publish an item to a node. |
Method Summary |
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.Collection<T extends Item> items
PublishItem
public PublishItem(java.lang.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(java.lang.String nodeId,
java.util.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 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.