public abstract class UrlStorageSource extends Object implements ExternalBinarySource
| Modifier and Type | Field and Description |
|---|---|
protected String |
fileName |
protected String |
nodeName |
protected String |
urlToLatestRelease |
| Constructor and Description |
|---|
UrlStorageSource(String storageUrl,
HttpClient httpClient) |
UrlStorageSource(String storageUrl,
String urlToLatestRelease,
HttpClient httpClient) |
UrlStorageSource(String nodeName,
String fileName,
String storageUrl,
String urlToLatestRelease,
HttpClient httpClient) |
| Modifier and Type | Method and Description |
|---|---|
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) |
ExternalBinary |
getReleaseForVersion(String requiredVersion)
Retrieves information about a binary release with the desired version and returns an instance of
ExternalBinary that represents the found release. |
ExternalBinary |
getReleaseForVersion(String requiredVersion,
Architecture architecture) |
protected String |
getVersion(String versionUrl,
String charset) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFileNameRegexToDownload, getFileNameRegexToDownloadprotected String nodeName
protected String fileName
protected String urlToLatestRelease
public UrlStorageSource(String nodeName, String fileName, String storageUrl, String urlToLatestRelease, HttpClient httpClient)
public UrlStorageSource(String storageUrl, HttpClient httpClient)
storageUrl - An url to a storage from which information about releases should be retrieved frompublic UrlStorageSource(String storageUrl, String urlToLatestRelease, HttpClient httpClient)
storageUrl - An url to a storage from which information about releases should be retrieved fromurlToLatestRelease - An url where a version of the latest release could be retrieved frompublic ExternalBinary getLatestRelease() throws Exception
ExternalBinarySourceExternalBinary that
represents the latest release.getLatestRelease in interface ExternalBinarySourceExternalBinary that contains information about the latest release of the binary.Exception - If anything bad happensprotected ExternalBinary getLatestRelease(String charset) throws Exception
Exceptionprotected String getVersion(String versionUrl, String charset) throws IOException
IOExceptionpublic ExternalBinary getReleaseForVersion(String requiredVersion) throws Exception
ExternalBinarySourceExternalBinary that represents the found release.getReleaseForVersion in interface ExternalBinarySourcerequiredVersion - A version of a binary release that should be retrieved.ExternalBinary that contains information about a binary release with the desired
version.Exceptionpublic ExternalBinary getReleaseForVersion(String requiredVersion, Architecture architecture) throws Exception
getReleaseForVersion in interface ExternalBinarySourceExceptionCopyright © 2023 JBoss by Red Hat. All rights reserved.