public class PhantomJsDriverManager extends BrowserManager
architecture, binaryPath, DEFAULT_ARCH, driverUrl, forceCache, forceDownload, httpClient, instance, listVersions, log, mirrorLog, MY_OS_NAME, proxy, proxyPass, proxyUser, SEPARATOR, TAOBAO_MIRROR, triedWithCache, useBetaVersions, version, versionToDownload| Constructor and Description |
|---|
PhantomJsDriverManager() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getCurrentVersion(URL url,
String driverName) |
protected List<String> |
getDriverName() |
protected List<URL> |
getDrivers() |
protected String |
getDriverUrlKey() |
protected String |
getDriverVersionKey() |
protected String |
getExportParameter() |
static BrowserManager |
getInstance() |
protected File |
postDownload(File archive) |
protected String |
preDownload(String target,
String version) |
protected boolean |
shouldCheckArchitecture(String driverName) |
BrowserManager |
useTaobaoMirror() |
arch32, arch64, architecture, createProxy, driverRepositoryUrl, existsDriverInCache, exportDriver, filter, filterByDistro, forceCache, forceCache, forceDownload, getBinaryPath, getDistroName, getDownloadedVersion, getDriversFromMirror, getDriversFromXml, getDriverUrl, getDriverVersion, getLatest, getOsName, getVersion, isExecutable, isNetAvailable, isUsingTaobaoMirror, loadXML, manage, manage, openGitHubConnection, proxy, proxyPass, proxyUser, removeFromList, setup, setup, setup, setup, useBetaVersions, version, versionComparepublic static BrowserManager getInstance()
protected List<URL> getDrivers() throws Exception
getDrivers in class BrowserManagerExceptionprotected String getExportParameter()
getExportParameter in class BrowserManagerprotected String getDriverVersionKey()
getDriverVersionKey in class BrowserManagerprotected String getDriverUrlKey()
getDriverUrlKey in class BrowserManagerprotected List<String> getDriverName()
getDriverName in class BrowserManagerprotected String getCurrentVersion(URL url, String driverName) throws MalformedURLException
getCurrentVersion in class BrowserManagerMalformedURLExceptionprotected String preDownload(String target, String version) throws IOException
preDownload in class BrowserManagerIOExceptionprotected File postDownload(File archive) throws IOException
postDownload in class BrowserManagerIOExceptionpublic BrowserManager useTaobaoMirror()
useTaobaoMirror in class BrowserManagerprotected boolean shouldCheckArchitecture(String driverName)
shouldCheckArchitecture in class BrowserManagerCopyright © 2017. All rights reserved.