Package org.jivesoftware.smackx.pubsub
Class GetItemsRequest
- java.lang.Object
-
- org.jivesoftware.smackx.pubsub.NodeExtension
-
- org.jivesoftware.smackx.pubsub.GetItemsRequest
-
- All Implemented Interfaces:
Element
,ExtensionElement
,FullyQualifiedElement
,NamedElement
,XmlLangElement
public class GetItemsRequest extends NodeExtension
Represents a request to subscribe to a node.
-
-
Constructor Summary
Constructors Constructor Description GetItemsRequest(String nodeId)
GetItemsRequest(String nodeId, int maxItemsToReturn)
GetItemsRequest(String nodeId, String subscriptionId)
GetItemsRequest(String nodeId, String subscriptionId, int maxItemsToReturn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addXml(XmlStringBuilder xml)
int
getMaxItems()
String
getSubscriptionId()
-
Methods inherited from class org.jivesoftware.smackx.pubsub.NodeExtension
getElementName, getNamespace, getNode, getPubSubNamespace, toString, toXML
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jivesoftware.smack.packet.FullyQualifiedElement
getLanguage, getQName
-
-
-
-
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()
-
addXml
protected void addXml(XmlStringBuilder xml)
- Overrides:
addXml
in classNodeExtension
-
-