public class PhantomJSGitHubBitbucketSource extends GitHubSource
GitHubSource implementation handling PhantomJS binaries. The latest version is retrieved
from list of GH tags and download URL is constructed to use Bitbucket downloads storage.AUTHORIZATION_HEADER_KEY, BASIC_AUTHORIZATION_HEADER_VALUE_PREFIX, GITHUB_TOKEN_PROPERTY, GITHUB_USERNAME_PROPERTY| Constructor and Description |
|---|
PhantomJSGitHubBitbucketSource(HttpClient httpClient,
GitHubLastUpdateCache gitHubLastUpdateCache,
org.openqa.selenium.remote.DesiredCapabilities capabilities) |
| Modifier and Type | Method and Description |
|---|---|
String |
getFileNameRegexToDownload(String version)
This method should returns a regex that represents a file name of the release asset that should be downloaded.
|
ExternalBinary |
getLatestRelease()
As there was announced the end of the development of PhantomJS:
https://groups.google.com/forum/#!msg/phantomjs/9aI5d-LDuNE/5Z3SMZrqAQAJ
it is not necessary to check the latest release - it is expected that there won't be any newer than the last
one: 2.1.1
If the development of PhantomJS is resurrected, then the original logic will be brought back.
|
ExternalBinary |
getReleaseForVersion(String version)
Retrieves information about a binary release with the desired version and returns an instance of
ExternalBinary that represents the found release. |
protected String |
getUrlForVersion(String version) |
extractModificationDate, findReleaseBinaryUrl, getCache, getGson, getProjectUrl, getUniqueKey, lastModificationHeader, sentGetRequestWithPaginationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFileNameRegexToDownload, getReleaseForVersionpublic PhantomJSGitHubBitbucketSource(HttpClient httpClient, GitHubLastUpdateCache gitHubLastUpdateCache, org.openqa.selenium.remote.DesiredCapabilities capabilities)
public ExternalBinary getLatestRelease() throws Exception
getLatestRelease in interface ExternalBinarySourcegetLatestRelease in class GitHubSourceExternalBinary that contains information about the latest release of the binary.Exception - If anything bad happenspublic ExternalBinary getReleaseForVersion(String version) throws Exception
ExternalBinarySourceExternalBinary that represents the found release.getReleaseForVersion in interface ExternalBinarySourcegetReleaseForVersion in class GitHubSourceversion - A version of a binary release that should be retrieved.ExternalBinary that contains information about a binary release with the desired
version.Exceptionpublic String getFileNameRegexToDownload(String version)
ExternalBinarySourceCopyright © 2021 JBoss by Red Hat. All rights reserved.