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

Quick Search    Search Deep

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

java.lang.Object
  extended bycom.tripi.asp.Session
All Implemented Interfaces:
SimpleMap

public class Session
extends java.lang.Object
implements SimpleMap

Session class, implements the ASP "Session" object.

Status:

Version:
0.9

Nested Class Summary
(package private)  class Session.ContentsReference
          This class handles the Contents variable, which is not defined until it is first accessed.
 
Field Summary
(package private)  AspCollection collection
          The actual collection contents
 SimpleReference Contents
          Reference to the collection object
private static org.apache.log4j.Category DBG
          Debugging category
(package private)  javax.servlet.http.HttpSession httpSession
          HTTP Session
 int LCID
          Session LCID value
(package private)  AspContext localContext
          Local context, Session_OnStart and Session_OnEnd are executed under this context
(package private)  javax.servlet.http.HttpServletRequest request
          HTTP Request object
 int timeout
          Session timeout value
 
Constructor Summary
  Session(javax.servlet.http.HttpServletRequest request, AspContext localContext)
          Constructor.
protected Session(javax.servlet.http.HttpSession session, AspCollection aspCollection)
          Special, protected constructor for use with Session_OnStart and Session_OnEnd.
 
Method Summary
 void abandon()
          ASP function, abandons the current session.
 java.lang.Object get(java.lang.Object key)
          Obtains a value in the session object, implementing the SimpleMap.get function.
 java.util.Enumeration getKeys()
          Obtains the keys of the map interface.
private  void getSession()
          Internal function which obtains the current, active session.
protected  void getSessionIfExists()
          Internal function to obtain the session if it already exists.
 void put(java.lang.Object key, java.lang.Object value)
          Stores a value in the session.
 java.lang.String SessionID()
          ASP function, obtains the session identifier
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DBG

private static final org.apache.log4j.Category DBG
Debugging category


httpSession

javax.servlet.http.HttpSession httpSession
HTTP Session


request

javax.servlet.http.HttpServletRequest request
HTTP Request object


collection

AspCollection collection
The actual collection contents


localContext

AspContext localContext
Local context, Session_OnStart and Session_OnEnd are executed under this context


Contents

public SimpleReference Contents
Reference to the collection object


timeout

public int timeout
Session timeout value


LCID

public int LCID
Session LCID value

Constructor Detail

Session

public Session(javax.servlet.http.HttpServletRequest request,
               AspContext localContext)
Constructor.


Session

protected Session(javax.servlet.http.HttpSession session,
                  AspCollection aspCollection)
Special, protected constructor for use with Session_OnStart and Session_OnEnd.

Method Detail

get

public java.lang.Object get(java.lang.Object key)
                     throws AspException
Obtains a value in the session object, implementing the SimpleMap.get function. Key will be converted to string and is case insensitive.

Specified by:
get in interface SimpleMap

put

public void put(java.lang.Object key,
                java.lang.Object value)
         throws AspException
Stores a value in the session. Key will be converted to string and is case insensitive.

Specified by:
put in interface SimpleMap

getKeys

public java.util.Enumeration getKeys()
                              throws AspException
Obtains the keys of the map interface.

Specified by:
getKeys in interface SimpleMap

abandon

public void abandon()
             throws AspException
ASP function, abandons the current session.


SessionID

public java.lang.String SessionID()
                           throws AspException
ASP function, obtains the session identifier


getSessionIfExists

protected void getSessionIfExists()
                           throws AspException
Internal function to obtain the session if it already exists.


getSession

private void getSession()
                 throws AspException
Internal function which obtains the current, active session.