Class PublishItem<T extends Item>

java.lang.Object
org.jivesoftware.smackx.pubsub.NodeExtension
org.jivesoftware.smackx.pubsub.PublishItem<T>
All Implemented Interfaces:
Element, NamedElement, XmlElement, XmlLangElement

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

  • Constructor Details

    • 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 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 to
      toPublish - The list of Item to publish
  • Method Details