Package 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:
Element
,ExtensionElement
,FullyQualifiedElement
,NamedElement
,XmlLangElement
public class PublishItem<T extends Item> extends NodeExtension
Represents a request to publish an item(s) to a specific node.
-
-
Constructor Summary
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addXml(XmlStringBuilder xml)
-
Methods inherited from class org.jivesoftware.smackx.pubsub.NodeExtension
getElementName, getNamespace, getNode, getPubSubNamespace, toString, toXML
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jivesoftware.smack.packet.FullyQualifiedElement
getLanguage, getQName
-
-
-
-
Constructor Detail
-
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
- TheItem
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 ofItem
to publish
-
-
Method Detail
-
addXml
protected void addXml(XmlStringBuilder xml)
- Overrides:
addXml
in classNodeExtension
-
-