Class StandardDownloader
java.lang.Object
com.hello2morrow.sonargraph.build.client.StandardDownloader
Handles the download of the JSON file containing the available versions as well as the download of the SonargraphBuild installation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal StringdetermineMatchingUrl(String versionToMatch, StandardDownloader.VersionFlag versionFlag) voiddownloadIntoDirectory(StandardDownloader.IProgressReporter reporter, File sonargraphBuildRoot, String downloadUrl) static Stringprotected org.json.simple.JSONObjectgetVersionData(URL url) static StringgetVersionFromUrl(String url) voidsetRequestedUrl(String m_requestedUrl)
-
Constructor Details
-
StandardDownloader
-
-
Method Details
-
getRequestedUrl
-
setRequestedUrl
-
getVersionData
- Throws:
Exception
-
determineMatchingUrl
public final String determineMatchingUrl(String versionToMatch, StandardDownloader.VersionFlag versionFlag) throws Exception - Throws:
Exception
-
getVersionFromUrl
-
downloadIntoDirectory
public void downloadIntoDirectory(StandardDownloader.IProgressReporter reporter, File sonargraphBuildRoot, String downloadUrl) throws IOException - Throws:
IOException
-
getDirectoryNameFromUrl
-