public final class SoftwareVersion
extends java.lang.Object
The implementation of the <query/>
element in the jabber:iq:version
namespace.
This class is immutable.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAMESPACE
jabber:iq:version
|
Constructor and Description |
---|
SoftwareVersion() |
SoftwareVersion(java.lang.String name,
java.lang.String version)
Creates a software version instance.
|
SoftwareVersion(java.lang.String name,
java.lang.String version,
java.lang.String os)
Creates a software version instance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Gets the software’s name.
|
java.lang.String |
getOs()
Gets the operating system.
|
java.lang.String |
getVersion()
Gets the version.
|
java.lang.String |
toString() |
public static final java.lang.String NAMESPACE
jabber:iq:version
public SoftwareVersion()
public SoftwareVersion(java.lang.String name, java.lang.String version)
Creates a software version instance. The operating system will be determined automatically.
If you want to hide OS information, useRevealing 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.
SoftwareVersion(String, String, String)
and pass null for the os parameter.name
- The software’s name.version
- The software’s version.public SoftwareVersion(java.lang.String name, java.lang.String version, java.lang.String os)
Creates a software version instance.
name
- The software’s name.version
- The software’s version.os
- The operating system.public final java.lang.String getOs()
Gets the operating system.
public final java.lang.String getVersion()
Gets the version.
public final java.lang.String getName()
Gets the software’s name.
public final java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2014–2019 XMPP.rocks. All rights reserved.