org.activemath.util
Class TimeStamp

java.lang.Object
  extended by org.activemath.util.TimeStamp

public class TimeStamp
extends Object

This utility class allows the production of an HTML "timestamp" in the following form:


This was generated by ActiveMath version versNum on host hostName on Date at Time for user User in session Session. Link to this frame.


Field Summary
protected static SimpleDateFormat dateFormat
           
protected static String hostName
           
protected static SimpleDateFormat hourFormat
           
protected static String linkToActiveMath
           
protected static String versionString
           
 
Constructor Summary
protected TimeStamp()
          Fetches the informations from the Manager and stores them.
 
Method Summary
protected static void ensureLoadedDatas()
           
static String getHtmlTimeStamp(String user, String session, String link)
          Produces the Hthml timeStamp.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dateFormat

protected static SimpleDateFormat dateFormat

hourFormat

protected static SimpleDateFormat hourFormat

versionString

protected static String versionString

linkToActiveMath

protected static String linkToActiveMath

hostName

protected static String hostName
Constructor Detail

TimeStamp

protected TimeStamp()
Fetches the informations from the Manager and stores them.

Method Detail

ensureLoadedDatas

protected static void ensureLoadedDatas()

getHtmlTimeStamp

public static String getHtmlTimeStamp(String user,
                                      String session,
                                      String link)
Produces the Hthml timeStamp. All parameters can be null if needed.