org.knuth.chkupdate
Class Provider

java.lang.Object
  extended by org.knuth.chkupdate.Provider
Direct Known Subclasses:
GitHubProvider, SourceForgeProvider

public abstract class Provider
extends java.lang.Object

Abstract base-class for a Provider.

Author:
Lukas Knuth

Constructor Summary
Provider()
           
 
Method Summary
abstract  UpdateResult doCheck()
          Performs the Update-Check.
abstract  java.lang.String getName()
          Returns the Name of the Service used by this Provider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Provider

public Provider()
Method Detail

doCheck

public abstract UpdateResult doCheck()
                              throws UpdateRequestException,
                                     UpdateResponseException
Performs the Update-Check.

Returns:
An "UpdateResult"-Object holding informations about the newest update.
Throws:
UpdateRequestException - Thrown when there was a problem requesting informations from the Provider.
UpdateResponseException - Thrown when there was a problem parsing the response from the Provider.

getName

public abstract java.lang.String getName()
Returns the Name of the Service used by this Provider

Returns:
The Service-Name