Package hudson.model

Class UpdateSite.Entry

    • Field Detail

      • name

        @Exported
        public final String name
        Artifact ID.
      • version

        @Exported
        public final String version
        The version.
      • url

        @Exported
        public final String url
        Download URL.
    • Constructor Detail

      • Entry

        public Entry​(String sourceId,
                     net.sf.json.JSONObject o)
    • Method Detail

      • getSha1

        public String 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

        public String getSha256()
        The base64 encoded SHA-256 checksum of the file. Can be null if not provided by the update site.
        Since:
        2.130
      • getSha512

        public String getSha512()
        The base64 encoded SHA-512 checksum of the file. Can be null if not provided by the update site.
        Since:
        2.130
      • isNewerThan

        public boolean isNewerThan​(String currentVersion)
        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

        public Api getApi()
      • getFileSize

        @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
        public Long getFileSize()
        Size of the file being advertised in bytes, or null if unspecified/unknown.
        Returns:
        size of the file if known, null otherwise.
        Since:
        2.325