Smack

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

Field Summary
protected  int maxItems
           
protected  String subId
           
 
Constructor Summary
GetItemsRequest(String nodeId)
           
GetItemsRequest(String nodeId, int maxItemsToReturn)
           
GetItemsRequest(String nodeId, String subscriptionId)
           
GetItemsRequest(String nodeId, String subscriptionId, int maxItemsToReturn)
           
 
Method Summary
 int getMaxItems()
           
 String getSubscriptionId()
           
 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

subId

protected String subId

maxItems

protected int maxItems
Constructor Detail

GetItemsRequest

public GetItemsRequest(String nodeId)

GetItemsRequest

public GetItemsRequest(String nodeId,
                       String subscriptionId)

GetItemsRequest

public GetItemsRequest(String nodeId,
                       int maxItemsToReturn)

GetItemsRequest

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

getSubscriptionId

public String getSubscriptionId()

getMaxItems

public int getMaxItems()

toXML

public 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.

Smack

Copyright © 2003-2007 Jive Software.