Class SoftwareInfoManager
- java.lang.Object
-
- org.jivesoftware.smack.Manager
-
- org.jivesoftware.smackx.softwareinfo.SoftwareInfoManager
-
public final class SoftwareInfoManager extends org.jivesoftware.smack.ManagerEntry point for Smack's API for XEP-0232: Software Information.- See Also:
- XEP-0232 : Software Information.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SoftwareInfoFormfromJid(org.jxmpp.jid.Jid jid)Get SoftwareInfoForm from Jid provided.static SoftwareInfoManagergetInstanceFor(org.jivesoftware.smack.XMPPConnection connection)booleanisSupported(org.jxmpp.jid.Jid jid)Returns true if the feature is supported by the Jid.voidpublishSoftwareInformationForm(SoftwareInfoForm softwareInfoForm)Publishes the providedSoftwareInfoFormas an extended info.
-
-
-
Method Detail
-
getInstanceFor
public static SoftwareInfoManager getInstanceFor(org.jivesoftware.smack.XMPPConnection connection) throws java.io.IOException, org.jivesoftware.smack.xml.XmlPullParserException, org.jivesoftware.smack.parsing.SmackParsingException
- Throws:
java.io.IOExceptionorg.jivesoftware.smack.xml.XmlPullParserExceptionorg.jivesoftware.smack.parsing.SmackParsingException
-
isSupported
public boolean isSupported(org.jxmpp.jid.Jid jid) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedExceptionReturns true if the feature is supported by the Jid.- Parameters:
jid- Jid to be checked for support- Returns:
- boolean
- Throws:
org.jivesoftware.smack.SmackException.NoResponseException- if there was no response from the remote entityorg.jivesoftware.smack.XMPPException.XMPPErrorException- if there was an XMPP error returnedorg.jivesoftware.smack.SmackException.NotConnectedException- if the XMPP connection is not connectedjava.lang.InterruptedException- if the calling thread was interrupted
-
publishSoftwareInformationForm
public void publishSoftwareInformationForm(SoftwareInfoForm softwareInfoForm)
Publishes the providedSoftwareInfoFormas an extended info.- Parameters:
softwareInfoForm- form to be added as an extended info
-
fromJid
public SoftwareInfoForm fromJid(org.jxmpp.jid.Jid jid) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException, org.jivesoftware.smack.SmackException.FeatureNotSupportedException
Get SoftwareInfoForm from Jid provided.- Parameters:
jid- jid to get software information from- Returns:
SoftwareInfoFormForm containing software information- Throws:
org.jivesoftware.smack.SmackException.NoResponseException- if there was no response from the remote entityorg.jivesoftware.smack.XMPPException.XMPPErrorException- if there was an XMPP error returnedorg.jivesoftware.smack.SmackException.NotConnectedException- if the XMPP connection is not connectedjava.lang.InterruptedException- if the calling thread was interruptedorg.jivesoftware.smack.SmackException.FeatureNotSupportedException- if the feature is not supported
-
-