EAF 6.4 Implementation

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

java.lang.Object
  extended bycom.lutris.appserver.server.sessionEnhydra.BasicSession
      extended bycom.lutris.appserver.server.sessionEnhydra.PagedSession
          extended bycom.lutris.appserver.server.sessionEnhydra.persistent.PersistentSession
All Implemented Interfaces:
javax.servlet.http.HttpSession, java.io.Serializable, com.lutris.appserver.server.session.Session, com.lutris.appserver.server.sessionEnhydra.StandardSession

public class PersistentSession
extends PagedSession

A serializable version of BasicSession that can be written to persistent store.

Version:
$Revision: 1.2 $
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, 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 6.4 Implementation