Class SoftwareInfoManager


  • public final class SoftwareInfoManager
    extends org.jivesoftware.smack.Manager
    Entry point for Smack's API for XEP-0232: Software Information.
    See Also:
    XEP-0232 : Software Information.
    • 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.IOException
        org.jivesoftware.smack.xml.XmlPullParserException
        org.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.InterruptedException
        Returns 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 entity
        org.jivesoftware.smack.XMPPException.XMPPErrorException - if there was an XMPP error returned
        org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected
        java.lang.InterruptedException - if the calling thread was interrupted
      • publishSoftwareInformationForm

        public void publishSoftwareInformationForm​(SoftwareInfoForm softwareInfoForm)
        Publishes the provided SoftwareInfoForm as 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:
        SoftwareInfoForm Form containing software information
        Throws:
        org.jivesoftware.smack.SmackException.NoResponseException - if there was no response from the remote entity
        org.jivesoftware.smack.XMPPException.XMPPErrorException - if there was an XMPP error returned
        org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected
        java.lang.InterruptedException - if the calling thread was interrupted
        org.jivesoftware.smack.SmackException.FeatureNotSupportedException - if the feature is not supported