com.isti.util.updatechecker
Class XMLUpdateCheckerClient

java.lang.Object
  extended by com.isti.util.updatechecker.BasicUpdateCheckerClient
      extended by com.isti.util.updatechecker.XMLUpdateCheckerClient

public class XMLUpdateCheckerClient
extends BasicUpdateCheckerClient

Class XMLUpdateChecker defines an update checker client.


Field Summary
protected static boolean debug
           
protected  XMLUpdateCheckerServer xmlServer
           
 
Fields inherited from class com.isti.util.updatechecker.BasicUpdateCheckerClient
server, version
 
Constructor Summary
XMLUpdateCheckerClient(IstiVersion version, java.lang.String updateLocationString)
          Constructs an update checker.
XMLUpdateCheckerClient(IstiVersion version, java.lang.String updateLocationString, java.util.Properties urlRequestProps)
          Constructs an update checker.
XMLUpdateCheckerClient(IstiVersion version, XMLUpdateCheckerServer xmlServer)
          Constructs an update checker client.
XMLUpdateCheckerClient(java.lang.String versionString, java.lang.String updateLocationString)
          Constructs an update checker.
 
Method Summary
 boolean getErrorFlag()
          Returns true if an error was detected.
 java.lang.String getErrorMessage()
          Returns message string for last error (or 'No error' if none).
static void main(java.lang.String[] args)
           
 
Methods inherited from class com.isti.util.updatechecker.BasicUpdateCheckerClient
getAdminEmailAddress, getUpdates, getVersion, isUpdateAvailable, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

debug

protected static boolean debug

xmlServer

protected final XMLUpdateCheckerServer xmlServer
Constructor Detail

XMLUpdateCheckerClient

public XMLUpdateCheckerClient(java.lang.String versionString,
                              java.lang.String updateLocationString)
Constructs an update checker.

Parameters:
versionString - the version string.
updateLocationString - the update location string.
See Also:
getErrorFlag(), getErrorMessage()

XMLUpdateCheckerClient

public XMLUpdateCheckerClient(IstiVersion version,
                              java.lang.String updateLocationString)
Constructs an update checker.

Parameters:
version - the version.
updateLocationString - the update location string.
See Also:
getErrorFlag(), getErrorMessage()

XMLUpdateCheckerClient

public XMLUpdateCheckerClient(IstiVersion version,
                              java.lang.String updateLocationString,
                              java.util.Properties urlRequestProps)
Constructs an update checker.

Parameters:
version - the version.
updateLocationString - the update location string.
urlRequestProps - the request properties to use for URL connections or null if none.
See Also:
getErrorFlag(), getErrorMessage()

XMLUpdateCheckerClient

public XMLUpdateCheckerClient(IstiVersion version,
                              XMLUpdateCheckerServer xmlServer)
Constructs an update checker client.

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

getErrorFlag

public boolean getErrorFlag()
Returns true if an error was detected. The error message may be fetched via the 'getErrorMessage()' method.

Returns:
true if an error was detected.

getErrorMessage

public java.lang.String getErrorMessage()
Returns message string for last error (or 'No error' if none).

Returns:
the error message.

main

public static void main(java.lang.String[] args)