org.jasig.cas.client.session
Class HashMapBackedSessionMappingStorage

java.lang.Object
  extended by org.jasig.cas.client.session.HashMapBackedSessionMappingStorage
All Implemented Interfaces:
SessionMappingStorage

public final class HashMapBackedSessionMappingStorage
extends java.lang.Object
implements SessionMappingStorage

HashMap backed implementation of SessionMappingStorage.

Since:
3.1
Version:
$Revision$ $Date$
Author:
Scott Battaglia

Constructor Summary
HashMapBackedSessionMappingStorage()
           
 
Method Summary
 void addSessionById(java.lang.String mappingId, javax.servlet.http.HttpSession session)
          Add a session by its mapping Id.
 void removeBySessionById(java.lang.String sessionId)
          Remove a session by its Id.
 javax.servlet.http.HttpSession removeSessionByMappingId(java.lang.String mappingId)
          Remove the HttpSession based on the mappingId.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HashMapBackedSessionMappingStorage

public HashMapBackedSessionMappingStorage()
Method Detail

addSessionById

public void addSessionById(java.lang.String mappingId,
                           javax.servlet.http.HttpSession session)
Description copied from interface: SessionMappingStorage
Add a session by its mapping Id.

Specified by:
addSessionById in interface SessionMappingStorage
Parameters:
mappingId - the id to map the session to.
session - the HttpSession.

removeBySessionById

public void removeBySessionById(java.lang.String sessionId)
Description copied from interface: SessionMappingStorage
Remove a session by its Id.

Specified by:
removeBySessionById in interface SessionMappingStorage
Parameters:
sessionId - the id of the session.

removeSessionByMappingId

public javax.servlet.http.HttpSession removeSessionByMappingId(java.lang.String mappingId)
Description copied from interface: SessionMappingStorage
Remove the HttpSession based on the mappingId.

Specified by:
removeSessionByMappingId in interface SessionMappingStorage
Parameters:
mappingId - the id the session is keyed under.
Returns:
the HttpSession if it exists.


Copyright © 2006-2009 JA-SIG. All Rights Reserved.