Class SoftwareInfoManager

java.lang.Object
org.jivesoftware.smack.Manager
org.jivesoftware.smackx.softwareinfo.SoftwareInfoManager

public final class SoftwareInfoManager extends org.jivesoftware.smack.Manager
Entry point for Smack's API for XEP-0232: Software Information.
See Also:
  • Method Details

    • getInstanceFor

      public static SoftwareInfoManager getInstanceFor(org.jivesoftware.smack.XMPPConnection connection)
    • 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, InterruptedException
      Get Software Information from the provided XMPP address. Returns null in case the queried entity does not announce that information.
      Parameters:
      jid - jid to get software information from
      Returns:
      SoftwareInfoForm Form containing software information or null.
      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
      InterruptedException - if the calling thread was interrupted