com.caucho.server.session
Class SessionFactory

java.lang.Object
  extended by com.caucho.server.session.SessionFactory

public class SessionFactory
extends java.lang.Object

A factory for creating sessions.


Constructor Summary
SessionFactory()
           
 
Method Summary
 SessionImpl create(java.lang.String id, long creationTime)
          Creates a new session.
 SessionManager getSessionManager()
          Gets the session manager.
 void init()
          Initialize after all the attributes are set.
 void setSessionManager(SessionManager manager)
          Sets the session manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionFactory

public SessionFactory()
Method Detail

setSessionManager

public void setSessionManager(SessionManager manager)
Sets the session manager.


getSessionManager

public SessionManager getSessionManager()
Gets the session manager.


init

@PostConstruct
public void init()
          throws ServletException
Initialize after all the attributes are set.

Throws:
ServletException

create

public SessionImpl create(java.lang.String id,
                          long creationTime)
                   throws ServletException
Creates a new session.

Parameters:
id - the session's id
creationTime - the current time
Returns:
the new session
Throws:
ServletException