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:versionnamespace.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 StringgetName()Deprecated.UsegetSoftware()StringgetOs()Gets the operating system.StringgetSoftware()Gets the XMPP software running at the entity.StringgetSoftwareVersion()Gets the XMPP software version.StringgetVersion()Deprecated.StringtoString()
-
-
-
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:
getOsin 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:SoftwareInfoGets the XMPP software version.- Specified by:
getSoftwareVersionin 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:SoftwareInfoGets the XMPP software running at the entity.- Specified by:
getSoftwarein interfaceSoftwareInfo- Returns:
- The XMPP software running at the entity.
-
-