public class WebDAO extends Object
| Constructor and Description |
|---|
WebDAO() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getLatestVersionNumberFromRemoteRepo(URL remoteVersionXMLFileLocation)
Fetches the latest Maven deployed version from a Maven built repository.
|
static URL |
getUrlOfZippedVersion(URL repoURL,
String suffix,
boolean returnAlternateArchives)
Gets the first zip file from a URL, in case of a Maven repo deploy this
should be the only zip in the folder.
|
static boolean |
newVersionReleased(MavenJarFile jarFile,
URL jarRepository)
Returns true if a new version is available.
|
public static String getLatestVersionNumberFromRemoteRepo(URL remoteVersionXMLFileLocation) throws XMLStreamException, IOException
remoteVersionXMLFileLocation - the version of the remote XML fileXMLStreamException - if an XMLStreamException occursIOException - if an IOException occurspublic static URL getUrlOfZippedVersion(URL repoURL, String suffix, boolean returnAlternateArchives) throws MalformedURLException, IOException
repoURL - the URL to get the zip fromsuffix - what file extension should be looked forreturnAlternateArchives - if the requested file extension isn't
found, return the first .zip/tar.gz foundMalformedURLException - if the URL of the zip could not be foundIOException - if the stream to the web page could not be readpublic static boolean newVersionReleased(MavenJarFile jarFile, URL jarRepository) throws IOException, XMLStreamException
jarFile - the Maven jar filejarRepository - the repositoryIOException - if an IOException occursXMLStreamException - if an XMLStreamException occursCopyright © 2016. All rights reserved.