|
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.DiscoverInfo
public class DiscoverInfo
A DiscoverInfo IQ packet, which is used by XMPP clients to request and receive information to/from other XMPP entities.
The received information may contain one or more identities of the requested XMPP entity, and a list of supported features by the requested XMPP entity.
Nested Class Summary | |
---|---|
static class |
DiscoverInfo.Feature
Represents the features offered by the item. |
static class |
DiscoverInfo.Identity
Represents the identity of a given XMPP entity. |
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 | |
---|---|
DiscoverInfo()
|
Method Summary | |
---|---|
void |
addFeature(String feature)
Adds a new feature to the discovered information. |
void |
addIdentity(DiscoverInfo.Identity identity)
Adds a new identity of the requested entity to the discovered information. |
boolean |
containsFeature(String feature)
Returns true if the specified feature is part of the discovered information. |
String |
getChildElementXML()
Returns the sub-element XML section of the IQ packet, or null if there isn't one. |
Iterator<DiscoverInfo.Identity> |
getIdentities()
Returns the discovered identities of an 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 DiscoverInfo()
Method Detail |
---|
public void addFeature(String feature)
feature
- the discovered featurepublic void addIdentity(DiscoverInfo.Identity identity)
identity
- the discovered entity's identitypublic Iterator<DiscoverInfo.Identity> getIdentities()
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 boolean containsFeature(String feature)
feature
- the feature to check
public 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 |