org.jivesoftware.smackx.pubsub
Class GetItemsRequest
java.lang.Object
org.jivesoftware.smackx.pubsub.NodeExtension
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 java.lang.String |
subId
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
subId
protected java.lang.String subId
maxItems
protected int maxItems
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)
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.
Copyright © 2003-2007 Jive Software.