EAF 7.6 Implementation

com.lutris.appserver.server.sessionEnhydra
Class PagedSession

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

public class PagedSession
extends BasicSession

PagedSession requires that all session data and the user associated with the session be serializable.

Version:
$Revision: 1.3 $
Author:
Kyle Clark
See Also:
PagedSessionHome, Serialized Form

Field Summary
 
Fields inherited from class com.lutris.appserver.server.sessionEnhydra.BasicSession
data, sessionManager, user
 
Constructor Summary
  PagedSession()
           
protected PagedSession(StandardSessionManager sessionManager, java.lang.String sessionKey)
          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

PagedSession

public PagedSession()

PagedSession

protected PagedSession(StandardSessionManager sessionManager,
                       java.lang.String sessionKey)
Construct a new session. Only called by PagedSessionHome.

Parameters:
sessionManager - The session manager that will manage 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 BasicSession
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.6 Implementation