- java.lang.Object
-
- org.tentackle.update.ClientInfo
-
- All Implemented Interfaces:
java.io.Serializable
public class ClientInfo extends java.lang.Object implements java.io.SerializableClient application info sent to the update server.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClientInfo(java.lang.String application, java.lang.String version, java.lang.String platform, java.lang.String architecture, InstallationType installationType)Creates a client application info.ClientInfo(java.lang.String application, java.lang.String version, InstallationType installationType)Creates a client application info.
Platform and architecture are determined from the system properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetApplication()Gets the application name.java.lang.StringgetArchitecture()Gets the architecture.InstallationTypegetInstallationType()Gets the installation type.java.lang.StringgetPlatform()Gets the client's platform.java.lang.StringgetVersion()Gets the application version.java.lang.StringtoString()
-
-
-
Constructor Detail
-
ClientInfo
public ClientInfo(java.lang.String application, java.lang.String version, java.lang.String platform, java.lang.String architecture, InstallationType installationType)Creates a client application info.- Parameters:
application- the client application nameversion- the client application versionplatform- the operating systemarchitecture- the hardware architecture
-
ClientInfo
public ClientInfo(java.lang.String application, java.lang.String version, InstallationType installationType)Creates a client application info.
Platform and architecture are determined from the system properties.- Parameters:
application- the client application nameversion- the client application version
-
-
Method Detail
-
getApplication
public java.lang.String getApplication()
Gets the application name.- Returns:
- the client application
-
getVersion
public java.lang.String getVersion()
Gets the application version.- Returns:
- the version the client application is currently running
-
getPlatform
public java.lang.String getPlatform()
Gets the client's platform.- Returns:
- the platform
-
getArchitecture
public java.lang.String getArchitecture()
Gets the architecture.- Returns:
- the architecture
-
getInstallationType
public InstallationType getInstallationType()
Gets the installation type.- Returns:
- the installation type
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-