com.compomics.software.autoupdater
Class WebDAO

java.lang.Object
  extended by com.compomics.software.autoupdater.WebDAO

public class WebDAO
extends Object

Author:
Davy

Constructor Summary
WebDAO()
           
 
Method Summary
static String getLatestVersionNumberFromRemoteRepo(URL remoteVersionXMLFileLocation)
           
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebDAO

public WebDAO()
Method Detail

getLatestVersionNumberFromRemoteRepo

public static String getLatestVersionNumberFromRemoteRepo(URL remoteVersionXMLFileLocation)
                                                   throws javax.xml.stream.XMLStreamException,
                                                          IOException
Throws:
javax.xml.stream.XMLStreamException
IOException

getUrlOfZippedVersion

public static URL getUrlOfZippedVersion(URL repoURL,
                                        String suffix,
                                        boolean returnAlternateArchives)
                                 throws MalformedURLException,
                                        IOException
gets the first zip file from an url, in case of a maven repo deploy this should be the only zip in the folder

Parameters:
repoURL - the URL to get the zip from
suffix - what file extension should be looked for
returnAlternateArchives - if the requested file extension isn't found, return the first .zip/tar.gz found
Returns:
URL to the archive file
Throws:
MalformedURLException - if the url of the zip could not be found
IOException - if the stream to the webpage could not be read

newVersionReleased

public static boolean newVersionReleased(MavenJarFile jarFile,
                                         URL jarRepository)
                                  throws IOException,
                                         javax.xml.stream.XMLStreamException
Throws:
IOException
javax.xml.stream.XMLStreamException


Copyright © 2013. All Rights Reserved.