public static class EdgeDriverBinaryHandler.EdgeStorageSources extends XmlStorageSource
fileName, nodeName, urlToLatestRelease| Constructor and Description |
|---|
EdgeStorageSources(String baseUrl) |
EdgeStorageSources(String baseUrl,
HttpClient client) |
| Modifier and Type | Method and Description |
|---|---|
protected NodeList |
getDriverEntries(Document doc) |
protected String |
getExpectedKeyRegex(String requiredVersion,
String directory)
It is expected that this abstract method should return a regex that represents a key of an expected binary/file
stored in the xml storage.
|
String |
getFileNameRegexToDownload(String version)
This method should returns a regex that represents a file name of the release asset that should be downloaded.
|
protected String |
getLastModified(Element element) |
ExternalBinary |
getLatestRelease()
Retrieves information about the latest release of binary and returns an instance of
ExternalBinary that
represents the latest release. |
protected ExternalBinary |
getLatestRelease(String charset) |
protected String |
getLocation(Element element) |
getContentOfFirstElement, getExpectedKeyRegex, getReleaseForVersion, getReleaseForVersion, getVersionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFileNameRegexToDownloadpublic EdgeStorageSources(String baseUrl)
public EdgeStorageSources(String baseUrl, HttpClient client)
protected String getExpectedKeyRegex(String requiredVersion, String directory)
XmlStorageSourcedirectory_name + / + file_name.getExpectedKeyRegex in class XmlStorageSourcerequiredVersion - The required version set using method XmlStorageSource.getReleaseForVersion(java.lang.String),
or otherwise nulldirectory - The directory for the current binary the regex is being matched againstpublic ExternalBinary getLatestRelease() throws Exception
ExternalBinarySourceExternalBinary that
represents the latest release.getLatestRelease in interface ExternalBinarySourcegetLatestRelease in class XmlStorageSourceExternalBinary that contains information about the latest release of the binary.Exception - If anything bad happensprotected ExternalBinary getLatestRelease(String charset) throws Exception
getLatestRelease in class XmlStorageSourceExceptionprotected NodeList getDriverEntries(Document doc)
getDriverEntries in class XmlStorageSourceprotected String getLastModified(Element element)
getLastModified in class XmlStorageSourceprotected String getLocation(Element element)
getLocation in class XmlStorageSourcepublic String getFileNameRegexToDownload(String version)
ExternalBinarySourceCopyright © 2021 JBoss by Red Hat. All rights reserved.