Package org.jivesoftware.smackx.pubsub
Class GetItemsRequest
- java.lang.Object
-
- org.jivesoftware.smackx.pubsub.NodeExtension
-
- org.jivesoftware.smackx.pubsub.GetItemsRequest
-
- All Implemented Interfaces:
org.jivesoftware.smack.packet.Element,org.jivesoftware.smack.packet.ExtensionElement,org.jivesoftware.smack.packet.FullyQualifiedElement,org.jivesoftware.smack.packet.NamedElement,org.jivesoftware.smack.packet.XmlLangElement
public class GetItemsRequest extends NodeExtension
Represents a request to subscribe to a node.
-
-
Constructor Summary
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMaxItems()java.lang.StringgetSubscriptionId()org.jivesoftware.smack.util.XmlStringBuildertoXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)-
Methods inherited from class org.jivesoftware.smackx.pubsub.NodeExtension
getElementName, getNamespace, getNode, getPubSubNamespace, toString
-
-
-
-
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 org.jivesoftware.smack.util.XmlStringBuilder toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
- Specified by:
toXMLin interfaceorg.jivesoftware.smack.packet.Element- Overrides:
toXMLin classNodeExtension
-
-