public class UrlHandler extends Object
| Constructor and Description |
|---|
UrlHandler(List<URL> candidateUrls,
String driverVersion,
String shortDriverName,
boolean isUseBeta) |
| Modifier and Type | Method and Description |
|---|---|
void |
filterByArch(Architecture arch,
boolean forcedArch) |
void |
filterByBeta(boolean useBeta) |
void |
filterByDistro(String os,
String driverName) |
void |
filterByDriverName(String driverName) |
void |
filterByIgnoredVersions(String... ignoredVersions) |
void |
filterByLatestVersion(Function<URL,String> getCurrentVersion) |
void |
filterByOs(String driverName,
String osName) |
void |
filterByVersion(String driverVersion) |
URL |
getCandidateUrl() |
List<URL> |
getCandidateUrls() |
String |
getDistroName() |
String |
getDriverVersion() |
boolean |
hasNoCandidateUrl() |
boolean |
isNotStable(URL url) |
void |
resetList(List<URL> newCandidateUrls) |
Integer |
versionCompare(String str1,
String str2) |
public static final String ALPHA
public static final String BETA
public void filterByDriverName(String driverName)
public void filterByVersion(String driverVersion)
public void filterByBeta(boolean useBeta)
public void filterByArch(Architecture arch, boolean forcedArch)
public void filterByDistro(String os, String driverName) throws IOException
IOExceptionpublic void filterByIgnoredVersions(String... ignoredVersions)
public String getDistroName() throws IOException
IOExceptionpublic boolean isNotStable(URL url)
public String getDriverVersion()
public boolean hasNoCandidateUrl()
public URL getCandidateUrl()
Copyright © 2020. All rights reserved.