java.lang.Object
com.tripi.asp.AspSessionHandler
- All Implemented Interfaces:
- java.util.EventListener, javax.servlet.http.HttpSessionListener
- public class AspSessionHandler
- extends java.lang.Object
- implements javax.servlet.http.HttpSessionListener
This class handles synchronization between ASP Sessions and Servlet
sessions for ASP to JSP interaction.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DBG
private org.apache.log4j.Category DBG
- Debugging class
sessionToAspCollection
private static java.util.HashMap sessionToAspCollection
- Global Session to AspCollection mapping.
AspSessionHandler
public AspSessionHandler()
- Constructor.
sessionCreated
public void sessionCreated(javax.servlet.http.HttpSessionEvent e)
- Session initialized.
Note: I am assuming that this function is called in a thread-safe
manner within a single session.
- Specified by:
sessionCreated in interface javax.servlet.http.HttpSessionListener
sessionDestroyed
public void sessionDestroyed(javax.servlet.http.HttpSessionEvent e)
- Session destroyed.
- Specified by:
sessionDestroyed in interface javax.servlet.http.HttpSessionListener
getCaseMappings
static java.util.Map getCaseMappings(javax.servlet.http.HttpSession session)
- This function obtains the case mappings for the specified session.
getContents
static AspCollection getContents(javax.servlet.http.HttpSession session)
- This function obtains the ASP Contents for the specified session.