jtge.engine.io
Class SessionManager

java.lang.Object
  extended byjtge.engine.io.SessionManager
All Implemented Interfaces:
IConnectionObserver, IDisconnectionObserver, ISessionManager

public class SessionManager
extends java.lang.Object
implements ISessionManager

Implements a composite of session managers.

Version:
$Revision: 1.5 $ $Date: 2005/09/10 23:59:42 $
Author:
Mathieu Champlon

Constructor Summary
SessionManager()
          Create a session manager.
 
Method Summary
 void close()
          Close the session.
 void closed(IInput input)
          Notify the closing of an input.
 void closed(IOutput output)
          Notify the closing of an output.
 void opened(IInput input, IOutput output)
          Notify the opening of an input and/or output.
 void register(ISessionManager manager)
          Register a session manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionManager

public SessionManager()
Create a session manager.

Method Detail

register

public final void register(ISessionManager manager)
Register a session manager.

Parameters:
manager - the manager to register

close

public final void close()
Close the session.

Specified by:
close in interface ISessionManager

opened

public final void opened(IInput input,
                         IOutput output)
Notify the opening of an input and/or output.

Specified by:
opened in interface IConnectionObserver
Parameters:
input - the input or null if none
output - the input or null if none

closed

public final void closed(IInput input)
Notify the closing of an input.

Specified by:
closed in interface IDisconnectionObserver
Parameters:
input - the closed input

closed

public final void closed(IOutput output)
Notify the closing of an output.

Specified by:
closed in interface IDisconnectionObserver
Parameters:
output - the closed output


Copyright © 2003-2005 . All Rights Reserved.