public final class SoftwareInfoManager
extends org.jivesoftware.smack.Manager
| Modifier and Type | Method and Description |
|---|---|
SoftwareInfoForm |
fromJid(org.jxmpp.jid.Jid jid)
Get SoftwareInfoForm from Jid provided.
|
static SoftwareInfoManager |
getInstanceFor(org.jivesoftware.smack.XMPPConnection connection) |
boolean |
isSupported(org.jxmpp.jid.Jid jid)
Returns true if the feature is supported by the Jid.
|
void |
publishSoftwareInformationForm(SoftwareInfoForm softwareInfoForm)
Publishes the provided
SoftwareInfoForm as an extended info. |
public static SoftwareInfoManager getInstanceFor(org.jivesoftware.smack.XMPPConnection connection) throws java.io.IOException, org.jivesoftware.smack.xml.XmlPullParserException, org.jivesoftware.smack.parsing.SmackParsingException
java.io.IOExceptionorg.jivesoftware.smack.xml.XmlPullParserExceptionorg.jivesoftware.smack.parsing.SmackParsingExceptionpublic 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.InterruptedException
jid - Jid to be checked for supportorg.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 interruptedpublic void publishSoftwareInformationForm(SoftwareInfoForm softwareInfoForm)
SoftwareInfoForm as an extended info.
softwareInfoForm - form to be added as an extended infopublic 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
jid - jid to get software information fromSoftwareInfoForm Form containing software informationorg.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