Class StandardDownloader


  • public class StandardDownloader
    extends java.lang.Object
    Handles the download of the JSON file containing the available versions as well as the download of the SonargraphBuild installation.
    • Constructor Detail

      • StandardDownloader

        public StandardDownloader​(java.lang.String proxyHost,
                                  java.lang.String proxyPort,
                                  java.lang.String proxyUser,
                                  java.lang.String proxyPassword,
                                  java.lang.String repository)
    • Method Detail

      • getVersionData

        protected org.json.simple.JSONObject getVersionData​(java.net.URL url)
                                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • determineMatchingUrl

        public final java.lang.String determineMatchingUrl​(java.lang.String versionToMatch,
                                                           StandardDownloader.VersionFlag versionFlag)
                                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getVersionFromUrl

        public static java.lang.String getVersionFromUrl​(java.lang.String url)
      • downloadIntoDirectory

        public void downloadIntoDirectory​(StandardDownloader.IProgressReporter reporter,
                                          java.io.File sonargraphBuildRoot,
                                          java.lang.String downloadUrl)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • getDirectoryNameFromUrl

        public static java.lang.String getDirectoryNameFromUrl​(java.lang.String url)