com.caucho.xmpp.pubsub
Class PubSubItemsQuery

java.lang.Object
  extended by com.caucho.xmpp.pubsub.PubSubQuery
      extended by com.caucho.xmpp.pubsub.PubSubItemsQuery
All Implemented Interfaces:
java.io.Serializable

public class PubSubItemsQuery
extends PubSubQuery

pubsub query XEP-0060: http://www.xmpp.org/extensions/xep-0060.html

 namespace = http://jabber.org/protocol/pubsub

 element pubsub {
   (create, configure?)
   | (subscribe?, options?)
   | affiliations
   | items
   | publish
   | retract
   | subscription
   | subscriptions
   | unsubscribe
 }

 element item {
   attribute id?,

   other?
 }

 element items {
   attribute max_items?,
   attribute node,
   attribute subid?,

   item*
 }
 

See Also:
Serialized Form

Constructor Summary
PubSubItemsQuery()
           
PubSubItemsQuery(java.lang.String node)
           
PubSubItemsQuery(java.lang.String node, java.lang.String subid, int maxItems)
           
 
Method Summary
 PubSubItem[] getItems()
           
 int getMaxItems()
           
 java.lang.String getNode()
           
 java.lang.String getSubid()
           
 void setItemList(java.util.ArrayList<PubSubItem> itemList)
           
 void setItems(PubSubItem[] items)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PubSubItemsQuery

public PubSubItemsQuery()

PubSubItemsQuery

public PubSubItemsQuery(java.lang.String node)

PubSubItemsQuery

public PubSubItemsQuery(java.lang.String node,
                        java.lang.String subid,
                        int maxItems)
Method Detail

getNode

public java.lang.String getNode()

getSubid

public java.lang.String getSubid()

getMaxItems

public int getMaxItems()

getItems

public PubSubItem[] getItems()

setItems

public void setItems(PubSubItem[] items)

setItemList

public void setItemList(java.util.ArrayList<PubSubItem> itemList)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object