org.jasig.cas.client.session
Interface SessionMappingStorage

All Known Implementing Classes:
HashMapBackedSessionMappingStorage

public interface SessionMappingStorage

Stores the mapping between sessions and keys to be retrieved later.

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

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.
 

Method Detail

removeSessionByMappingId

javax.servlet.http.HttpSession removeSessionByMappingId(java.lang.String mappingId)
Remove the HttpSession based on the mappingId.

Parameters:
mappingId - the id the session is keyed under.
Returns:
the HttpSession if it exists.

removeBySessionById

void removeBySessionById(java.lang.String sessionId)
Remove a session by its Id.

Parameters:
sessionId - the id of the session.

addSessionById

void addSessionById(java.lang.String mappingId,
                    javax.servlet.http.HttpSession session)
Add a session by its mapping Id.

Parameters:
mappingId - the id to map the session to.
session - the HttpSession.


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