|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compomics.software.autoupdater.WebDAO
public class WebDAO
WebDAO.
Constructor Summary | |
---|---|
WebDAO()
|
Method Summary | |
---|---|
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 an 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebDAO()
Method Detail |
---|
public static String getLatestVersionNumberFromRemoteRepo(URL remoteVersionXMLFileLocation) throws XMLStreamException, IOException
remoteVersionXMLFileLocation
-
XMLStreamException
IOException
public 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 found
MalformedURLException
- if the url of the zip could not be found
IOException
- if the stream to the webpage could not be readpublic static boolean newVersionReleased(MavenJarFile jarFile, URL jarRepository) throws IOException, XMLStreamException
jarFile
- the maven jar filejarRepository
- the repository
IOException
XMLStreamException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |