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

Quick Search    Search Deep

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

java.lang.Object
  extended bycom.tripi.asp.AspCollection
      extended bycom.tripi.asp.AspSessionHandler.AspSynchronizedCollection
All Implemented Interfaces:
java.io.Serializable, SimpleMap
Enclosing class:
AspSessionHandler

public static class AspSessionHandler.AspSynchronizedCollection
extends AspCollection
implements SimpleMap

This class helps synchronize Asp Session data with Servlet Session data.


Nested Class Summary
 
Nested classes inherited from class com.tripi.asp.AspCollection
AspCollection.ItemClass
 
Field Summary
(package private)  java.util.Map caseMapping
           
(package private)  boolean connected
           
private static org.apache.log4j.Category DBG
          Debugging class
(package private)  javax.servlet.http.HttpSession session
           
 
Fields inherited from class com.tripi.asp.AspCollection
contents, Item, map, readonly
 
Constructor Summary
(package private) AspSessionHandler.AspSynchronizedCollection(javax.servlet.http.HttpSession session, java.util.Map caseMapping)
          Constructor.
 
Method Summary
 void disconnectFromSession()
          Disconnect from the session.
 java.lang.Object get(java.lang.Object key)
          Obtains the value of data contained within the application object.
 void internalPut(java.lang.Object key, java.lang.Object obj)
          Internal function to store a value without touching the HttpSession objects.
 void internalRemove(java.lang.Object key)
          Internal function to remove the element without touching the HTTPSession.
 void put(java.lang.Object key, java.lang.Object obj)
          The put method adds an item to this collection
 void remove(java.lang.Object key)
          Removes the element from this collection.
 void removeAll()
          Removes all of the elements from this collection.
 
Methods inherited from class com.tripi.asp.AspCollection
containsKey, Count, elements, getKeys, initialize, keys, setReadOnly, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.tripi.asp.SimpleMap
getKeys
 

Field Detail

DBG

private static org.apache.log4j.Category DBG
Debugging class


session

javax.servlet.http.HttpSession session

connected

boolean connected

caseMapping

java.util.Map caseMapping
Constructor Detail

AspSessionHandler.AspSynchronizedCollection

AspSessionHandler.AspSynchronizedCollection(javax.servlet.http.HttpSession session,
                                            java.util.Map caseMapping)
Constructor.

Method Detail

get

public java.lang.Object get(java.lang.Object key)
                     throws AspException
Obtains the value of data contained within the application object.

Specified by:
get in interface SimpleMap
Overrides:
get in class AspCollection

internalPut

public void internalPut(java.lang.Object key,
                        java.lang.Object obj)
                 throws AspException
Internal function to store a value without touching the HttpSession objects.


put

public void put(java.lang.Object key,
                java.lang.Object obj)
         throws AspException
The put method adds an item to this collection

Specified by:
put in interface SimpleMap
Overrides:
put in class AspCollection

internalRemove

public void internalRemove(java.lang.Object key)
                    throws AspException
Internal function to remove the element without touching the HTTPSession.


remove

public void remove(java.lang.Object key)
            throws AspException
Removes the element from this collection.

Overrides:
remove in class AspCollection

removeAll

public void removeAll()
               throws AspException
Removes all of the elements from this collection.

Overrides:
removeAll in class AspCollection

disconnectFromSession

public void disconnectFromSession()
Disconnect from the session. Used when sessions are closed so that setting/removing values to the session does not cause an invalidated session error.