public final class SoftwareVersionManager extends ExtensionManager
If enabled and a software version has been set, it automatically responds to inbound queries for the software version.
It also allows to query for the software version of another entity.| Modifier and Type | Method and Description |
|---|---|
SoftwareVersion |
getSoftwareVersion()
Gets my own software version, which should be set first.
|
SoftwareVersion |
getSoftwareVersion(Jid jid)
Gets the software version of another entity.
|
void |
setSoftwareVersion(SoftwareVersion softwareVersion)
Sets my own software version.
|
isEnabled, setEnabledpublic SoftwareVersion getSoftwareVersion(Jid jid) throws XmppException
jid - The JID of the entity you want get the software version from. You can also pass null, if you want to get the server's software version.StanzaException - If the entity returned a stanza error.NoResponseException - If the entity did not respond.XmppExceptionpublic SoftwareVersion getSoftwareVersion()
setSoftwareVersion(SoftwareVersion)public void setSoftwareVersion(SoftwareVersion softwareVersion)
softwareVersion - My software version.getSoftwareVersion()Copyright © 2014–2015 XMPP.rocks. All rights reserved.