|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.saucelabs.ci.SauceLibraryManager
public abstract class SauceLibraryManager
| Constructor Summary | |
|---|---|
SauceLibraryManager()
|
|
| Method Summary | |
|---|---|
void |
addFileToJar(File pluginJarFile,
de.schlichtherle.truezip.file.TFile updatedSauceConnectJarFile)
Adds the updatedSauceConnectJarFile to the pluginJarFile. |
boolean |
checkForLaterVersion()
Performs a REST request to https://saucelabs.com/versions.json to retrieve the list of sauce connect version information. |
SauceFactory |
getSauceAPIFactory()
|
File |
retrieveNewVersion(String response)
Performs a HTTP GET to retrieve the contents of the download url (assumed to be a zip file), then unzips the zip file to the file system. |
void |
triggerReload()
Performs a REST request to https://saucelabs.com/versions.json to retrieve the download url to be used to retrieve the latest version of Sauce Connect, then updates the Bamboo Sauce plugin jar to include this jar. |
abstract void |
updatePluginJar(File jarFile)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SauceLibraryManager()
| Method Detail |
|---|
public boolean checkForLaterVersion()
throws IOException,
org.json.JSONException,
URISyntaxException
IOException
org.json.JSONException - thrown if an error occurs during the parsing of the JSON response
URISyntaxException
public void triggerReload()
throws org.json.JSONException,
IOException,
URISyntaxException
org.json.JSONException - thrown if an error occurs during the parsing of the JSON response
IOException
URISyntaxExceptionpublic SauceFactory getSauceAPIFactory()
public abstract void updatePluginJar(File jarFile)
throws IOException,
URISyntaxException
IOException
URISyntaxException
public File retrieveNewVersion(String response)
throws org.json.JSONException,
IOException
response -
org.json.JSONException
IOException
public void addFileToJar(File pluginJarFile,
de.schlichtherle.truezip.file.TFile updatedSauceConnectJarFile)
throws IOException
pluginJarFile - updatedSauceConnectJarFile -
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||