Class StandardDownloader
- java.lang.Object
-
- com.hello2morrow.sonargraph.build.client.internal.StandardDownloader
-
public class StandardDownloader extends java.lang.ObjectHandles the download of the JSON file containing the available versions as well as the download of the SonargraphBuild installation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceStandardDownloader.IProgressReporterstatic classStandardDownloader.VersionFlag
-
Constructor Summary
Constructors Constructor Description StandardDownloader(java.lang.String proxyHost, java.lang.String proxyPort, java.lang.String proxyUser, java.lang.String proxyPassword, java.lang.String repository)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringdetermineMatchingUrl(java.lang.String versionToMatch, StandardDownloader.VersionFlag versionFlag)voiddownloadIntoDirectory(StandardDownloader.IProgressReporter reporter, java.io.File sonargraphBuildRoot, java.lang.String downloadUrl)static java.lang.StringgetDirectoryNameFromUrl(java.lang.String url)protected org.json.simple.JSONObjectgetVersionData(java.net.URL url)static java.lang.StringgetVersionFromUrl(java.lang.String url)
-
-
-
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)
-
-