Class PublishItem<T extends Item>

  • All Implemented Interfaces:
    org.jivesoftware.smack.packet.Element, org.jivesoftware.smack.packet.NamedElement, org.jivesoftware.smack.packet.XmlElement, org.jivesoftware.smack.packet.XmlLangElement

    public class PublishItem<T extends Item>
    extends NodeExtension
    Represents a request to publish an item(s) to a specific node.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Collection<T> items  
    • 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​(org.jivesoftware.smack.util.XmlStringBuilder xml)  
      • 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.Element

        toXML, toXML
      • Methods inherited from interface org.jivesoftware.smack.packet.XmlElement

        getLanguage, getQName
    • Field Detail

      • items

        protected java.util.Collection<T extends Item> items
    • 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 to
        toPublish - 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 to
        toPublish - The list of Item to publish
    • Method Detail

      • addXml

        protected void addXml​(org.jivesoftware.smack.util.XmlStringBuilder xml)
        Overrides:
        addXml in class NodeExtension