|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jivesoftware.smack.packet.Packet
org.jivesoftware.smack.packet.IQ
org.jivesoftware.smackx.packet.DiscoverItems
public class DiscoverItems
A DiscoverItems IQ packet, which is used by XMPP clients to request and receive items associated with XMPP entities.
The items could also be queried in order to discover if they contain items inside. Some items may be addressable by its JID and others may require to be addressed by a JID and a node name.
Nested Class Summary | |
---|---|
static class |
DiscoverItems.Item
An item is associated with an XMPP Entity, usually thought of a children of the parent entity and normally are addressable as a JID. |
Nested classes/interfaces inherited from class org.jivesoftware.smack.packet.IQ |
---|
IQ.Type |
Field Summary |
---|
Fields inherited from class org.jivesoftware.smack.packet.Packet |
---|
DEFAULT_LANGUAGE, ID_NOT_AVAILABLE |
Constructor Summary | |
---|---|
DiscoverItems()
|
Method Summary | |
---|---|
void |
addItem(DiscoverItems.Item item)
Adds a new item to the discovered information. |
String |
getChildElementXML()
Returns the sub-element XML section of the IQ packet, or null if there isn't one. |
Iterator<DiscoverItems.Item> |
getItems()
Returns the discovered items of the queried XMPP entity. |
String |
getNode()
Returns the node attribute that supplements the 'jid' attribute. |
void |
setNode(String node)
Sets the node attribute that supplements the 'jid' attribute. |
Methods inherited from class org.jivesoftware.smack.packet.IQ |
---|
getType, setType, toXML |
Methods inherited from class org.jivesoftware.smack.packet.Packet |
---|
addExtension, deleteProperty, equals, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, getXmlns, hashCode, nextID, parseXMLLang, removeExtension, setDefaultXmlns, setError, setFrom, setPacketID, setProperty, setTo |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DiscoverItems()
Method Detail |
---|
public void addItem(DiscoverItems.Item item)
item
- the discovered entity's itempublic Iterator<DiscoverItems.Item> getItems()
public String getNode()
Node attributes SHOULD be used only when trying to provide or query information which is not directly addressable.
public void setNode(String node)
Node attributes SHOULD be used only when trying to provide or query information which is not directly addressable.
node
- the node attribute that supplements the 'jid' attributepublic String getChildElementXML()
IQ
Extensions of this class must override this method.
getChildElementXML
in class IQ
|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |