EAF 7.4 Implementation

com.lutris.appserver.server.sessionEnhydra.persistent
Class PersistentSession

java.lang.Object
  extended by com.lutris.appserver.server.sessionEnhydra.BasicSession
      extended by com.lutris.appserver.server.sessionEnhydra.PagedSession
          extended by 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

Field Summary
 
Fields inherited from class com.lutris.appserver.server.sessionEnhydra.BasicSession
data, sessionManager, user
 
Constructor Summary
  PersistentSession()
          Need the following constructor in order to serialize?
protected PersistentSession(StandardSessionManager sessionManager, java.lang.String sessionKey, PersistentSessionHome sessionHome)
          Construct a new session.
 
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
 

Constructor Detail

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.
Method Detail

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.

EAF 7.4 Implementation