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(String mappingId, javax.servlet.http.HttpSession session)
          Add a session by its mapping Id.
 void removeBySessionById(String sessionId)
          Remove a session by its Id.
 javax.servlet.http.HttpSession removeSessionByMappingId(String mappingId)
          Remove the HttpSession based on the mappingId.
 

Method Detail

removeSessionByMappingId

javax.servlet.http.HttpSession removeSessionByMappingId(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(String sessionId)
Remove a session by its Id.

Parameters:
sessionId - the id of the session.

addSessionById

void addSessionById(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-2011 Jasig. All Rights Reserved.