Package esmska.update

Class GatewayUpdateInfo


  • public class GatewayUpdateInfo
    extends java.lang.Object
    Class for representation of gateway update.
    • Constructor Summary

      Constructors 
      Constructor Description
      GatewayUpdateInfo​(java.lang.String name, java.lang.String fileName, java.lang.String version, java.lang.String minProgramVersion, java.lang.String downloadUrl, java.lang.String iconUrl)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canBeUsed()
      Returns whether gateway required program version is lower or same as current program version (can be used), or not (can't be used).
      java.net.URL getDownloadUrl()
      url where to download gateway script, not null nor empty
      java.lang.String getFileName()
      name of gateway file (without 'gateway' suffix)
      java.net.URL getIconUrl()
      url where to download gateway icon, may be null
      java.lang.String getMinProgramVersion()
      minimal required program version to run gateway, not null nor empty
      java.lang.String getName()
      gateway name, not null nor empty
      java.lang.String getVersion()
      gateway version, not null nor empty
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • GatewayUpdateInfo

        public GatewayUpdateInfo​(java.lang.String name,
                                 java.lang.String fileName,
                                 java.lang.String version,
                                 java.lang.String minProgramVersion,
                                 java.lang.String downloadUrl,
                                 java.lang.String iconUrl)
                          throws java.net.MalformedURLException
        Constructor.
        Parameters:
        name - gateway name; not null nor empty
        version - gateway version; not null nor empty
        fileName - name of gateway script without suffix; not null nor empty
        minProgramVersion - minimal required program version to run gateway; not null nor empty
        downloadUrl - url where to download gateway script; not null nor empty
        iconUrl - url where to download gateway icon; empty string is changed to null
        Throws:
        java.net.MalformedURLException - if some of the urls where not valid
    • Method Detail

      • getName

        public java.lang.String getName()
        gateway name, not null nor empty
      • getFileName

        public java.lang.String getFileName()
        name of gateway file (without 'gateway' suffix)
      • getVersion

        public java.lang.String getVersion()
        gateway version, not null nor empty
      • getDownloadUrl

        public java.net.URL getDownloadUrl()
        url where to download gateway script, not null nor empty
      • getMinProgramVersion

        public java.lang.String getMinProgramVersion()
        minimal required program version to run gateway, not null nor empty
      • getIconUrl

        public java.net.URL getIconUrl()
        url where to download gateway icon, may be null
      • canBeUsed

        public boolean canBeUsed()
        Returns whether gateway required program version is lower or same as current program version (can be used), or not (can't be used).
      • toString

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