Class ClientInfo

  • All Implemented Interfaces:
    java.io.Serializable

    public class ClientInfo
    extends java.lang.Object
    implements java.io.Serializable
    Client 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)
      Creates a client application info.
      Platform and architecture are determined from the system properties.
      ClientInfo​(java.lang.String application, java.lang.String version, java.lang.String platform, java.lang.String architecture)
      Creates a client application info.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getApplication()
      Gets the application name.
      java.lang.String getArchitecture()
      Gets the architecture.
      java.lang.String getPlatform()
      Gets the client's platform.
      java.lang.String getVersion()
      Gets the application version.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ClientInfo

        public ClientInfo​(java.lang.String application,
                          java.lang.String version,
                          java.lang.String platform,
                          java.lang.String architecture)
        Creates a client application info.
        Parameters:
        application - the client application name
        version - the client application version
        platform - the operating system
        architecture - the hardware architecture
      • ClientInfo

        public ClientInfo​(java.lang.String application,
                          java.lang.String version)
        Creates a client application info.
        Platform and architecture are determined from the system properties.
        Parameters:
        application - the client application name
        version - 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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object