com.isti.util.updatechecker
Class BasicUpdateCheckerClient

java.lang.Object
  extended by com.isti.util.updatechecker.BasicUpdateCheckerClient
Direct Known Subclasses:
XMLUpdateCheckerClient

public class BasicUpdateCheckerClient
extends java.lang.Object

Class BasicUpdateCheckerClient defines an update checker client.


Field Summary
protected  BasicUpdateCheckerServer server
           
protected  IstiVersion version
           
 
Constructor Summary
BasicUpdateCheckerClient(IstiVersion version, BasicUpdateCheckerServer server)
          Constructs an update checker client.
 
Method Summary
 java.lang.String getAdminEmailAddress()
          Gets the admin email address.
 UpdateInformation[] getUpdates()
          Gets a list of updates.
 IstiVersion getVersion()
          Gets the version.
 boolean isUpdateAvailable()
          Determines if there is an update available.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

version

protected final IstiVersion version

server

protected final BasicUpdateCheckerServer server
Constructor Detail

BasicUpdateCheckerClient

public BasicUpdateCheckerClient(IstiVersion version,
                                BasicUpdateCheckerServer server)
Constructs an update checker client.

Parameters:
version - the version.
server - the update checker server.
Method Detail

getAdminEmailAddress

public java.lang.String getAdminEmailAddress()
Gets the admin email address.

Returns:
the admin email address or null if unknown.

getUpdates

public UpdateInformation[] getUpdates()
Gets a list of updates.

Returns:
an array of updates.

getVersion

public IstiVersion getVersion()
Gets the version.

Returns:
the version.

isUpdateAvailable

public boolean isUpdateAvailable()
Determines if there is an update available.

Returns:
true if there is an update available, false otherwise.

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of the object.