com.isti.util.updatechecker
Class BasicUpdateCheckerServer

java.lang.Object
  extended by com.isti.util.updatechecker.BasicUpdateCheckerServer
Direct Known Subclasses:
XMLUpdateCheckerServer

public class BasicUpdateCheckerServer
extends java.lang.Object

Class BasicUpdateCheckerServer defines an update checker server.


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

Constructor Detail

BasicUpdateCheckerServer

public BasicUpdateCheckerServer(java.lang.String adminEmailAddress,
                                UpdateInformation[] updates)
Constructs an update checker server.

Parameters:
adminEmailAddress - the admin email address or null if unknown.
updates - an array of updates.
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(IstiVersion version)
Gets a list of updates for the specified version.

Parameters:
version - the version.
Returns:
an array of updates.

isUpdateAvailable

public boolean isUpdateAvailable(IstiVersion version)
Determines if there is an update available for the specified version.

Parameters:
version - the version.
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.

toString

public static java.lang.String toString(UpdateInformation[] updates)
Returns a string representation of the updates.

Parameters:
updates - an array of updates.
Returns:
a string representation of the updates.