Package hudson.model
Class UpdateSite.Entry
java.lang.Object
hudson.model.UpdateSite.Entry
- Direct Known Subclasses:
UpdateSite.Plugin
- Enclosing class:
- UpdateSite
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetApi()
Size of the file being advertised in bytes, ornull
if unspecified/unknown.getSha1()
The base64 encoded binary SHA-1 checksum of the file.The base64 encoded SHA-256 checksum of the file.The base64 encoded SHA-512 checksum of the file.boolean
isNewerThan
(String currentVersion) Checks if the specified "current version" is older than the version of this entry.
-
Field Details
-
sourceId
UpdateSite
ID. -
name
Artifact ID. -
version
The version. -
url
Download URL.
-
-
Constructor Details
-
Entry
-
-
Method Details
-
getSha1
The base64 encoded binary SHA-1 checksum of the file. Can be null if not provided by the update site.- Since:
- 1.641 (and 1.625.3 LTS)
-
getSha256
The base64 encoded SHA-256 checksum of the file. Can be null if not provided by the update site.- Since:
- 2.130
-
getSha512
The base64 encoded SHA-512 checksum of the file. Can be null if not provided by the update site.- Since:
- 2.130
-
isNewerThan
Checks if the specified "current version" is older than the version of this entry.- Parameters:
currentVersion
- The string that represents the version number to be compared.- Returns:
- true if the version listed in this entry is newer. false otherwise, including the situation where the strings couldn't be parsed as version numbers.
-
getApi
-
getFileSize
Size of the file being advertised in bytes, ornull
if unspecified/unknown.- Returns:
- size of the file if known,
null
otherwise. - Since:
- 2.325
-