Package esmska.update
Class GatewayUpdateInfo
- java.lang.Object
-
- esmska.update.GatewayUpdateInfo
-
public class GatewayUpdateInfo extends java.lang.ObjectClass 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 booleancanBeUsed()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.URLgetDownloadUrl()url where to download gateway script, not null nor emptyjava.lang.StringgetFileName()name of gateway file (without 'gateway' suffix)java.net.URLgetIconUrl()url where to download gateway icon, may be nulljava.lang.StringgetMinProgramVersion()minimal required program version to run gateway, not null nor emptyjava.lang.StringgetName()gateway name, not null nor emptyjava.lang.StringgetVersion()gateway version, not null nor emptyjava.lang.StringtoString()
-
-
-
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.MalformedURLExceptionConstructor.- Parameters:
name- gateway name; not null nor emptyversion- gateway version; not null nor emptyfileName- name of gateway script without suffix; not null nor emptyminProgramVersion- minimal required program version to run gateway; not null nor emptydownloadUrl- url where to download gateway script; not null nor emptyiconUrl- 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:
toStringin classjava.lang.Object
-
-