|
WebObjects 5.2.3 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | 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(javax.servlet.http.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
sessionID
- the session id associated with the WOSession to be removed
null
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
sessionID
- the session id associated with the WOSession to be restoredwoRequest
- the input HTTP request for session restoration
null
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
context
- the WOContext to retrieve the current session to be savedWOSessionStore.checkInSessionForContext(WOContext)
public static WOSession woSessionFromHttpSession(javax.servlet.http.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 Thu Oct 21 15:04:16 PDT 2004. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |