org.jivesoftware.smackx.pubsub
Class GetItemsRequest

java.lang.Object
  extended by org.jivesoftware.smackx.pubsub.NodeExtension
      extended by org.jivesoftware.smackx.pubsub.GetItemsRequest
All Implemented Interfaces:
PacketExtension

public class GetItemsRequest
extends NodeExtension

Represents a request to subscribe to a node.

Author:
Robin Collier

Constructor Summary
GetItemsRequest(java.lang.String nodeId)
           
GetItemsRequest(java.lang.String nodeId, int maxItemsToReturn)
           
GetItemsRequest(java.lang.String nodeId, java.lang.String subscriptionId)
           
GetItemsRequest(java.lang.String nodeId, java.lang.String subscriptionId, int maxItemsToReturn)
           
 
Method Summary
 int getMaxItems()
           
 java.lang.String getSubscriptionId()
           
 java.lang.String toXML()
          Returns the XML representation of the PacketExtension.
 
Methods inherited from class org.jivesoftware.smackx.pubsub.NodeExtension
getElementName, getNamespace, getNode, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GetItemsRequest

public GetItemsRequest(java.lang.String nodeId)

GetItemsRequest

public GetItemsRequest(java.lang.String nodeId,
                       java.lang.String subscriptionId)

GetItemsRequest

public GetItemsRequest(java.lang.String nodeId,
                       int maxItemsToReturn)

GetItemsRequest

public GetItemsRequest(java.lang.String nodeId,
                       java.lang.String subscriptionId,
                       int maxItemsToReturn)
Method Detail

getSubscriptionId

public java.lang.String getSubscriptionId()

getMaxItems

public int getMaxItems()

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.