|
WebObjects 5.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.webobjects.appserver.WOSessionStore | +--com.webobjects.jspservlet.WOServletSessionStore
This is a subclass of WOSessionStore, and is intended to replace the WOServerSessionStore subclass.
The intention is that WOSessions will be piggybacked on HttpSession objects from the JSP/Servlet
world. As they expire, so will the WOSessions. If they are serialized and moved to another
container, the WOSession should follow it -- however, this functionality may not be completed.
Because of this, this session store does not actually store sessions. Instead, it knows how to
add/remove sessions to/from existing JSP sessions. One consequence is that the WOSessionTimeout
setting is no longer applicable, as the JSP session setting will be used instead.
Constructor Summary | |
WOServletSessionStore()
Creates a default session object. |
Method Summary | |
WOSession |
removeSessionWithID(String sessionID)
Removes a WOSession instance from storage in order to make it eligible for garbage collection. |
WOSession |
restoreSessionWithID(String sessionID,
WORequest woRequest)
Restores a WOSession associated with sessionID from storage. |
void |
saveSessionForContext(WOContext context)
Saves the current WOSession in context into storage. |
static WOSession |
woSessionFromHttpSession(com.webobjects.jspservlet.HttpSession anHttpSession)
Returns the WOSession associated with anHttpSession . |
Methods inherited from class com.webobjects.appserver.WOSessionStore |
checkInSessionForContext, checkOutSessionWithID, finalize, serverSessionStore |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WOServletSessionStore()
Method Detail |
public WOSession removeSessionWithID(String sessionID)
WOSessionStore
This method should be implemented by concrete WOSessionStore subclasses.
removeSessionWithID
in class WOSessionStore
com.webobjects.appserver.WOSessionStore
sessionID
- the session id associated with the WOSession to be removednull
otherwisepublic WOSession restoreSessionWithID(String sessionID, WORequest woRequest)
WOSessionStore
sessionID
from storage. This method
is called from checkOutSessionWithID
and is to be implemented
by a concrete WOSessionStore subclass. The subclass is free to decide on the kind of
suitable storage and the algorithm for restoration.
The default implementation does nothing.
restoreSessionWithID
in class WOSessionStore
com.webobjects.appserver.WOSessionStore
sessionID
- the session id associated with the WOSession to be restoredaRequest
- the input HTTP request for session restorationnull
otherwiseWOSessionStore.checkOutSessionWithID(String, WORequest)
public void saveSessionForContext(WOContext context)
WOSessionStore
context
into storage. This method
is called from checkInSessionForContext
and is to implemented
by a concrete WOSessionStore subclass. The subclass is free to decided on the kind of
suitable storage and the algorithm for saving.
The default implementation does nothing.
saveSessionForContext
in class WOSessionStore
com.webobjects.appserver.WOSessionStore
context
- the WOContext to retrieve the current session to be savedWOSessionStore.checkInSessionForContext(WOContext)
public static WOSession woSessionFromHttpSession(com.webobjects.jspservlet.HttpSession anHttpSession)
anHttpSession
.
If anHttpSession
is null
, or has no associated WOSession, this method returns null
.anHttpSession
- the HttpSession object (this is the JSP session object).
|
Last updated Fri Feb 21 13:15:00 PST 2003. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |