Class SoftwareInfoManager
java.lang.Object
org.jivesoftware.smack.Manager
org.jivesoftware.smackx.softwareinfo.SoftwareInfoManager
Entry point for Smack's API for XEP-0232: Software Information.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGet Software Information from the provided XMPP address.static SoftwareInfoManager
getInstanceFor
(XMPPConnection connection) void
publishSoftwareInformationForm
(SoftwareInfoForm softwareInfoForm) Publishes the providedSoftwareInfoForm
as an extended info.Methods inherited from class org.jivesoftware.smack.Manager
connection, getAuthenticatedConnectionOrThrow, schedule, schedule, scheduleBlocking
-
Method Details
-
getInstanceFor
-
publishSoftwareInformationForm
Publishes the providedSoftwareInfoForm
as an extended info.- Parameters:
softwareInfoForm
- form to be added as an extended info
-
fromJid
public SoftwareInfoForm fromJid(Jid jid) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException Get Software Information from the provided XMPP address. Returnsnull
in case the queried entity does not announce that information.- Parameters:
jid
- jid to get software information from- Returns:
SoftwareInfoForm
Form containing software information ornull
.- Throws:
SmackException.NoResponseException
- if there was no response from the remote entityXMPPException.XMPPErrorException
- if there was an XMPP error returnedSmackException.NotConnectedException
- if the XMPP connection is not connectedInterruptedException
- if the calling thread was interrupted
-