TelnetD at SF

net.wimpi.telnetd.shell
Class DummyShell

java.lang.Object
  extended bynet.wimpi.telnetd.shell.DummyShell
All Implemented Interfaces:
ConnectionListener, Shell

public class DummyShell
extends java.lang.Object
implements Shell

This class is an example implmentation of a Shell.
* It is used for testing the system.
* At the moment you can see all io toolkit classes in action, * pressing "t" at its prompt (instead of the enter, which is * requested for logging out again). * * @author Dieter Wimberger * @version 2.0 (13/03/2005)


Constructor Summary
DummyShell()
           
 
Method Summary
 void connectionIdle(ConnectionEvent ce)
          Called when a CONNECTION_IDLE event occured.
 void connectionLogoutRequest(ConnectionEvent ce)
          Called when a CONNECTION_LOGOUTREQUEST occured.
 void connectionSentBreak(ConnectionEvent ce)
          Called when a CONNECTION_BREAK event occured.
 void connectionTimedOut(ConnectionEvent ce)
          Called when a CONNECTION_TIMEDOUT event occured.
static Shell createShell()
           
 void run(Connection con)
          Method that runs a shell * * @param con Connection that runs the shell.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyShell

public DummyShell()
Method Detail

run

public void run(Connection con)
Method that runs a shell * * @param con Connection that runs the shell.

Specified by:
run in interface Shell
Parameters:
con - Connection the shell is associated with

connectionTimedOut

public void connectionTimedOut(ConnectionEvent ce)
Description copied from interface: ConnectionListener
Called when a CONNECTION_TIMEDOUT event occured.

Specified by:
connectionTimedOut in interface ConnectionListener
Parameters:
ce - ConnectionEvent instance.
See Also:
ConnectionEvent.CONNECTION_TIMEDOUT

connectionIdle

public void connectionIdle(ConnectionEvent ce)
Description copied from interface: ConnectionListener
Called when a CONNECTION_IDLE event occured.

Specified by:
connectionIdle in interface ConnectionListener
Parameters:
ce - ConnectionEvent instance.
See Also:
ConnectionEvent.CONNECTION_IDLE

connectionLogoutRequest

public void connectionLogoutRequest(ConnectionEvent ce)
Description copied from interface: ConnectionListener
Called when a CONNECTION_LOGOUTREQUEST occured.

Specified by:
connectionLogoutRequest in interface ConnectionListener
Parameters:
ce - ConnectionEvent instance.
See Also:
ConnectionEvent.CONNECTION_LOGOUTREQUEST

connectionSentBreak

public void connectionSentBreak(ConnectionEvent ce)
Description copied from interface: ConnectionListener
Called when a CONNECTION_BREAK event occured.

Specified by:
connectionSentBreak in interface ConnectionListener
Parameters:
ce - ConnectionEvent instance.
See Also:
ConnectionEvent.CONNECTION_BREAK

createShell

public static Shell createShell()

TelnetD at SF

Copyright 2000-2005 Dieter Wimberger.