net.wotonomy.web
Class WOSessionStore

java.lang.Object
  extended by net.wotonomy.web.WOSessionStore
Direct Known Subclasses:
WOServletSessionStore

public abstract class WOSessionStore
extends java.lang.Object

An abstract class defining the requirements for persisting session state across user transactions. Used by WOApplication to persist sessions between requests.

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

Constructor Summary
WOSessionStore()
           
 
Method Summary
 void checkInSessionForContext(WOContext aContext)
          Called by WOApplication after the request-response cycle has ended.
 WOSession checkOutSessionWithID(java.lang.String sessionID, WORequest aRequest)
          Returns the session with the specified id for the specified request, or null if none exist.
abstract  WOSession removeSessionWithID(java.lang.String sessionID)
          Removes the WOSession for the specified ID from the store and returns it.
abstract  WOSession restoreSessionWithID(java.lang.String sessionID, WORequest aRequest)
          Returns the WOSession for the specified ID from the store.
abstract  void saveSessionForContext(WOContext context)
          Places the context's session into the store.
static WOSessionStore serverSessionStore()
          Returns the default session store used by WOApplication.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WOSessionStore

public WOSessionStore()
Method Detail

serverSessionStore

public static WOSessionStore serverSessionStore()
Returns the default session store used by WOApplication.


checkInSessionForContext

public final void checkInSessionForContext(WOContext aContext)
Called by WOApplication after the request-response cycle has ended. The context's session will again be available for subsequent requests.


checkOutSessionWithID

public final WOSession checkOutSessionWithID(java.lang.String sessionID,
                                             WORequest aRequest)
Returns the session with the specified id for the specified request, or null if none exist. Subsequent calls for the same id will return null until the session is checked in again. Called by WOApplication before the request-response cycle starts.


removeSessionWithID

public abstract WOSession removeSessionWithID(java.lang.String sessionID)
Removes the WOSession for the specified ID from the store and returns it.


restoreSessionWithID

public abstract WOSession restoreSessionWithID(java.lang.String sessionID,
                                               WORequest aRequest)
Returns the WOSession for the specified ID from the store.


saveSessionForContext

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



Copyright © 2006 null. All Rights Reserved.