Class SoftwareVersion
- java.lang.Object
-
- rocks.xmpp.extensions.version.model.SoftwareVersion
-
- All Implemented Interfaces:
SoftwareInfo
public final class SoftwareVersion extends Object implements SoftwareInfo
The implementation of the<query/>
element in thejabber:iq:version
namespace.This class is immutable.
- See Also:
- XEP-0092: Software Version, XML Schema
-
-
Constructor Summary
Constructors Constructor Description SoftwareVersion()
SoftwareVersion(String name, String version)
Creates a software version instance.SoftwareVersion(String name, String version, String os)
Creates a software version instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getName()
Deprecated.UsegetSoftware()
String
getOs()
Gets the operating system.String
getSoftware()
Gets the XMPP software running at the entity.String
getSoftwareVersion()
Gets the XMPP software version.String
getVersion()
Deprecated.String
toString()
-
-
-
Field Detail
-
NAMESPACE
public static final String NAMESPACE
jabber:iq:version- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SoftwareVersion
public SoftwareVersion()
-
SoftwareVersion
public SoftwareVersion(String name, String version)
Creates a software version instance. The operating system will be determined automatically.Revealing the application's underlying operating system may open the user or system to attacks directed against that operating system; therefore, an application MUST provide a way for a human user or administrator to disable sharing of information about the operating system.
If you want to hide OS information, use
SoftwareVersion(String, String, String)
and pass null for the os parameter.- Parameters:
name
- The software's name.version
- The software's version.
-
-
Method Detail
-
getOs
public final String getOs()
Gets the operating system.- Specified by:
getOs
in interfaceSoftwareInfo
- Returns:
- The operating system.
-
getVersion
@Deprecated public final String getVersion()
Deprecated.Gets the version.- Returns:
- The version.
-
getSoftwareVersion
public final String getSoftwareVersion()
Description copied from interface:SoftwareInfo
Gets the XMPP software version.- Specified by:
getSoftwareVersion
in interfaceSoftwareInfo
- Returns:
- The XMPP software version.
-
getName
@Deprecated public final String getName()
Deprecated.UsegetSoftware()
Gets the software's name.- Returns:
- The software's name.
-
getSoftware
public final String getSoftware()
Description copied from interface:SoftwareInfo
Gets the XMPP software running at the entity.- Specified by:
getSoftware
in interfaceSoftwareInfo
- Returns:
- The XMPP software running at the entity.
-
-