Methods Summary |
---|
public Session | createSession(java.lang.String key, java.lang.Class clasz)Creates a Session with the given key, using a new instance
of the specified Class as a holder for user-defined data. The
specified Class must have a default ctor.
Session sess;
try {
sess = new Session(this, key, clasz.newInstance());
} catch (InstantiationException e) {
return null;
} catch (IllegalAccessException ee) {
return null;
}
sessionMap.put(key, sess);
return sess;
|
public Session | createSession(java.lang.String key, java.lang.Object obj)Creates a Session with the given key, using the specified Object
as a holder for user-defined data.
Session sess = new Session(this, key, obj);
sessionMap.put(key, sess);
return sess;
|
public Session | createSession(java.lang.String key)Creates a Session with the given key, using an instance of
java.util.Hashtable asa holder for user-defined data.
return createSession(key, new java.util.Hashtable<String, String>());
|
public java.util.Set | getKeys()Returns the Set of valid Session keys.
return sessionMap.keySet();
|
public Session | getSession(java.lang.String key)Returns an existing session identified by the Key else null
return sessionMap.get(key);
|
public void | saveSession(java.lang.String key)Does nothing in this implementation.
|
public void | terminateSession(java.lang.String key)Removed the Session with the given key.
sessionMap.remove(key);
|