net.wotonomy.web
Class WOServletSessionStore

java.lang.Object
  extended by net.wotonomy.web.WOSessionStore
      extended by net.wotonomy.web.WOServletSessionStore

public class WOServletSessionStore
extends WOSessionStore

An implementation of WOSessionStore that stores WOSessions inside of HttpSessions, to take advantage of the servlet containers built-in distribution capabilities.

Version:
$Revision: 905 $
Author:
michael@mpowers.net, $Author: cgruber $

Constructor Summary
WOServletSessionStore()
           
 
Method Summary
 WOSession removeSessionWithID(java.lang.String sessionID)
          This implementation currently does nothing and returns null, as we rely on the servlet container to dispose of the HttpSession which contains our WOSession.
 WOSession restoreSessionWithID(java.lang.String sessionID, WORequest aRequest)
          Returns the WOSession for the specified ID from the store.
 void saveSessionForContext(WOContext context)
          Places the context's session into the store.
 
Methods inherited from class net.wotonomy.web.WOSessionStore
checkInSessionForContext, checkOutSessionWithID, serverSessionStore
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WOServletSessionStore

public WOServletSessionStore()
Method Detail

removeSessionWithID

public WOSession removeSessionWithID(java.lang.String sessionID)
This implementation currently does nothing and returns null, as we rely on the servlet container to dispose of the HttpSession which contains our WOSession.

Specified by:
removeSessionWithID in class WOSessionStore

restoreSessionWithID

public WOSession restoreSessionWithID(java.lang.String sessionID,
                                      WORequest aRequest)
Returns the WOSession for the specified ID from the store. The sessionID parameter is ignored, and the session is removed from the store until saveSessionForContext is called.

Specified by:
restoreSessionWithID in class WOSessionStore

saveSessionForContext

public void saveSessionForContext(WOContext context)
Places the context's session into the store.

Specified by:
saveSessionForContext in class WOSessionStore


Copyright © 2006 null. All Rights Reserved.