/** * */ package at.knowcenter.wag.egov.egiz.web; /** * This class contains the session table that is used for local requests. * * @author wprinz */ public abstract class SessionTable { // Session table no longer needed - because J2EE Servlet sessions are used. // /** // * The HashMap for mapping the session id to the SessionInformation object on // * the server. // */ // protected static Map session_table = new HashMap(); // // /** // * The random number generator used to generate session_ids. // */ // protected static Random random = new Random(); // // /** // * Generates a new SessionInformation object with a unique session_id. // * // *

// * The object has to be added to the session table by using put(). // *

// * // * @return Returns the generated SessionInformation object. // * // * @see #put(SessionInformation) // */ // public static SessionInformation generateSessionInformationObject() // { // SessionInformation si = new SessionInformation(); // si.session_id = random.nextLong(); // // return si; // } // // /** // * Puts the SessionInformation object into the session table. // * // * @param si // * The SessionInformation object. The session_id field must be filled // * out properly. // */ // public static void put(SessionInformation si) // { // session_table.put(new Long(si.session_id), si); // } // // /** // * Gets the SessionInformation object associated with the given session_id. // * // * @param session_id // * The session_id. // * @return Returns the corresponding SessionInformation object or null, if no // * object is associated with that id. // */ // public static SessionInformation get(final long session_id) // { // return (SessionInformation) session_table.get(new Long(session_id)); // } // // /** // * Removes the SessionInformation object with the provided session_id from the // * session table. // * // * @param session_id // * The session_id to be removed. // */ // public static void remove(long session_id) // { // session_table.remove(new Long(session_id)); // } // // /** // * Simply clear the session table. // * // *

// * This should be used once in a while to tie up some loose ends. // *

// */ // public static void clear() // { // session_table.clear(); // } }