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
subId
protected String subId
maxItems
protected int maxItems
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)
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.
Copyright © 2003-2007 Jive Software.