javax.rad.server
Class AbstractSessionManager

java.lang.Object
  extended by javax.rad.server.AbstractSessionManager
Direct Known Subclasses:
DefaultSessionManager

public abstract class AbstractSessionManager
extends Object

A AbstractSessionManager defines the access to the server-side session handling.


Constructor Summary
protected AbstractSessionManager(IServer pServer)
          Creates a new instance of AbstractSessionManager for a specific IServer.
 
Method Summary
abstract  void addSessionListener(ISessionListener pListener)
          Adds an ISessionListener session listener to the list of known listeners.
abstract  ISession get(Object pSessionId)
          Gets an existing session.
 IServer getServer()
          Gets the associated IServer.
abstract  ISessionListener[] getSessionListeners()
          Gets the list of known listeners.
abstract  void removeSessionListener(ISessionListener pListener)
          Removes an ISessionListener from the list of known listeners.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSessionManager

protected AbstractSessionManager(IServer pServer)
Creates a new instance of AbstractSessionManager for a specific IServer.

Parameters:
pServer - the server
Method Detail

get

public abstract ISession get(Object pSessionId)
Gets an existing session.

Parameters:
pSessionId - session identifier
Returns:
session object, guaranteed not null
Throws:
SecurityException - if the session is expired or pSessionId is null

addSessionListener

public abstract void addSessionListener(ISessionListener pListener)
Adds an ISessionListener session listener to the list of known listeners.

Parameters:
pListener - te session listener to add

removeSessionListener

public abstract void removeSessionListener(ISessionListener pListener)
Removes an ISessionListener from the list of known listeners.

Parameters:
pListener - the session listener to remove

getSessionListeners

public abstract ISessionListener[] getSessionListeners()
Gets the list of known listeners.

Returns:
a list of ISessionListener or an empty list

getServer

public IServer getServer()
Gets the associated IServer.

Returns:
the server


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.