com.lutris.appserver.server.sessionEnhydra.persistent
Class PersistentSession
java.lang.Object
com.lutris.appserver.server.sessionEnhydra.BasicSession
com.lutris.appserver.server.sessionEnhydra.PagedSession
com.lutris.appserver.server.sessionEnhydra.persistent.PersistentSession
- All Implemented Interfaces:
- com.lutris.appserver.server.session.Session, com.lutris.appserver.server.sessionEnhydra.StandardSession, java.io.Serializable, javax.servlet.http.HttpSession
public class PersistentSession
- extends PagedSession
A serializable version of BasicSession that
can be written to persistent store.
- Version:
- $Revision: 1.3 $
- Author:
- Kyle Clark
- See Also:
- Serialized Form
Method Summary |
void |
setUser(com.lutris.appserver.server.user.User user)
Ensures that the user associated with the session is serializable. |
Methods inherited from class com.lutris.appserver.server.sessionEnhydra.BasicSession |
clearUser, decrementRefCount, getAttribute, getAttributeNames, getCreationTime, getHttpSession, getId, getLastAccessedTime, getMaxIdleTime, getMaxInactiveInterval, getMaxNoUserIdleTime, getRefCount, getServletContext, getSessionContext, getSessionData, getSessionKey, getSessionManager, getTimeCreated, getTimeExpires, getTimeLastUsed, getUser, getValue, getValueNames, incrementRefCount, invalidate, isNew, putValue, removeAttribute, removeValue, setAttribute, setHttpSession, setMaxIdleTime, setMaxInactiveInterval, setMaxNoUserIdleTime, setTimeExpires, toString, touch |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PersistentSession
public PersistentSession()
- Need the following constructor in order to serialize?
PersistentSession
protected PersistentSession(StandardSessionManager sessionManager,
java.lang.String sessionKey,
PersistentSessionHome sessionHome)
- Construct a new session. Only called by
PersistentSessionHome
.
- Parameters:
sessionManager
- The session manager that will manager this session.sessionKey
- The unique session key associated with the session.
setUser
public void setUser(com.lutris.appserver.server.user.User user)
throws com.lutris.appserver.server.session.SessionException
- Ensures that the user associated with the session is serializable.
- Specified by:
setUser
in interface com.lutris.appserver.server.session.Session
- Overrides:
setUser
in class PagedSession
- Parameters:
user
- the user object to associate with the session.
- Throws:
com.lutris.appserver.server.session.SessionException
- if the user cannot be associated with the session.