Class SoftwareInformation

    • Constructor Detail

      • SoftwareInformation

        public SoftwareInformation​(Media icon,
                                   String software,
                                   String softwareVersion)
        Creates a new Software Info data form, where the OS name and version are automatically taken from their respective system properties "os.name" and "os.version".
        Parameters:
        icon - A default icon to show for a device running the software.
        software - The XMPP software running at the entity.
        softwareVersion - The XMPP software version.
      • SoftwareInformation

        public SoftwareInformation​(Media icon,
                                   String software,
                                   String softwareVersion,
                                   String os,
                                   String osVersion)
        Creates a new Software Info data form.
        Parameters:
        icon - A default icon to show for a device running the software.
        software - The XMPP software running at the entity.
        softwareVersion - The XMPP software version.
        os - The operating system on which the XMPP software is running.
        osVersion - The operating system version.
      • SoftwareInformation

        public SoftwareInformation​(DataForm dataForm)
        Creates a software info from a data form.
        Parameters:
        dataForm - The data form.
        Throws:
        IllegalArgumentException - If the data form's form type is not 'urn:xmpp:dataforms:softwareinfo'.
    • Method Detail

      • getIcon

        public final Media getIcon()
        A default icon to show for a device running the software.
        Returns:
        The default icon.
      • getOs

        public final String getOs()
        Description copied from interface: SoftwareInfo
        The operating system on which the XMPP software is running.
        Specified by:
        getOs in interface SoftwareInfo
        Returns:
        The operating system.
      • getOsVersion

        public final String getOsVersion()
        Gets the operating system version.
        Returns:
        The operating system version.
      • getSoftware

        public final String getSoftware()
        Description copied from interface: SoftwareInfo
        Gets the XMPP software running at the entity.
        Specified by:
        getSoftware in interface SoftwareInfo
        Returns:
        The XMPP software running at the entity.
      • getSoftwareVersion

        public final String getSoftwareVersion()
        Gets the XMPP software version.
        Specified by:
        getSoftwareVersion in interface SoftwareInfo
        Returns:
        The XMPP software version.