Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.tripi.asp
Class AspSessionHandler  view AspSessionHandler download AspSessionHandler.java

java.lang.Object
  extended bycom.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.


Nested Class Summary
static class AspSessionHandler.AspSynchronizedCollection
          This class helps synchronize Asp Session data with Servlet Session data.
 
Field Summary
private  org.apache.log4j.Category DBG
          Debugging class
private static java.util.HashMap sessionToAspCollection
          Global Session to AspCollection mapping.
 
Constructor Summary
AspSessionHandler()
          Constructor.
 
Method Summary
(package private) static java.util.Map getCaseMappings(javax.servlet.http.HttpSession session)
          This function obtains the case mappings for the specified session.
(package private) static AspCollection getContents(javax.servlet.http.HttpSession session)
          This function obtains the ASP Contents for the specified session.
 void sessionCreated(javax.servlet.http.HttpSessionEvent e)
          Session initialized.
 void sessionDestroyed(javax.servlet.http.HttpSessionEvent e)
          Session destroyed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DBG

private org.apache.log4j.Category DBG
Debugging class


sessionToAspCollection

private static java.util.HashMap sessionToAspCollection
Global Session to AspCollection mapping.

Constructor Detail

AspSessionHandler

public AspSessionHandler()
Constructor.

Method Detail

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.