JSPTemplates

org.tp23.jasper
Class HashSession

java.lang.Object
  |
  +--org.tp23.jasper.HashSession
All Implemented Interfaces:
Session

public class HashSession
extends java.lang.Object
implements Session

Like an HTTP session but with out the time outs. It uses a Hashtable and wraps method names that are familiar to HttpSession round a Hashtable.

Author:
Paul Hinds

Constructor Summary
HashSession()
           
 
Method Summary
 java.lang.Object getAttribute(java.lang.String name)
           
 java.util.Enumeration getAttributeNames()
           
 java.lang.String getId()
           
 void invalidate()
           
 void removeAttribute(java.lang.String name)
           
 void setAttribute(java.lang.String name, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HashSession

public HashSession()
Method Detail

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.Object value)
Specified by:
setAttribute in interface Session

getId

public java.lang.String getId()
Specified by:
getId in interface Session

getAttribute

public java.lang.Object getAttribute(java.lang.String name)
Specified by:
getAttribute in interface Session

getAttributeNames

public java.util.Enumeration getAttributeNames()
Specified by:
getAttributeNames in interface Session

removeAttribute

public void removeAttribute(java.lang.String name)
Specified by:
removeAttribute in interface Session

invalidate

public void invalidate()
Specified by:
invalidate in interface Session

JSPTemplates