org.pdfsam.guiclient.updates.checkers
Class HttpUpdateChecker

java.lang.Object
  extended by org.pdfsam.guiclient.updates.checkers.HttpUpdateChecker
All Implemented Interfaces:
UpdateChecker

public class HttpUpdateChecker
extends java.lang.Object
implements UpdateChecker

Checks for update over a http connection

Author:
Andrea Vacondio

Constructor Summary
HttpUpdateChecker(java.lang.String httpUrl)
           
 
Method Summary
 java.lang.String getLatestVersion()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpUpdateChecker

public HttpUpdateChecker(java.lang.String httpUrl)
Parameters:
httpUrl -
Method Detail

getLatestVersion

public java.lang.String getLatestVersion()
                                  throws CheckForUpdateException
Specified by:
getLatestVersion in interface UpdateChecker
Returns:
the latest available version. Empty string if no version information is available
Throws:
CheckForUpdateException - if an error occur