org.twdata.kokua
Class Telnet

java.lang.Object
  extended by org.twdata.kokua.Telnet
All Implemented Interfaces:
StreamFilter

public class Telnet
extends java.lang.Object
implements StreamFilter

The telnet plugin utilizes a telnet protocol handler to filter telnet negotiation requests from the data stream.

Maintainer: Matthias L. Jugel

Version:
$Id: Telnet.java,v 1.6 2004/09/20 06:11:15 mrdon Exp $
Author:
Matthias L. Jugel, Marcus Mei?ner

Field Summary
protected  MessageBus bus
           
protected  de.mud.telnet.TelnetProtocolHandler handler
          Description of the Field
protected  StreamFilter source
          Description of the Field
protected  Terminal terminal
           
 
Constructor Summary
Telnet()
          Create a new telnet plugin.
 
Method Summary
 void channel(OnlineStatusSignal signal)
          Description of the Method
 void channel(TelnetCommandSignal signal)
          Description of the Method
 StreamFilter getFilterSource()
          Gets the filterSource attribute of the Telnet object
 int read(byte[] b)
          Description of the Method
 void setFilterSource(StreamFilter source)
          Sets the filterSource attribute of the Telnet object
 void setMessageBus(MessageBus bus)
           
 void setTerminal(Terminal terminal)
           
 void write(byte[] b)
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

source

protected StreamFilter source
Description of the Field


handler

protected de.mud.telnet.TelnetProtocolHandler handler
Description of the Field


terminal

protected Terminal terminal

bus

protected MessageBus bus
Constructor Detail

Telnet

public Telnet()
Create a new telnet plugin.

Method Detail

setMessageBus

public void setMessageBus(MessageBus bus)

setTerminal

public void setTerminal(Terminal terminal)

channel

public void channel(OnlineStatusSignal signal)
Description of the Method

Parameters:
signal - Description of the Parameter

channel

public void channel(TelnetCommandSignal signal)
Description of the Method

Parameters:
signal - Description of the Parameter

setFilterSource

public void setFilterSource(StreamFilter source)
Sets the filterSource attribute of the Telnet object

Specified by:
setFilterSource in interface StreamFilter
Parameters:
source - The new filterSource value

getFilterSource

public StreamFilter getFilterSource()
Gets the filterSource attribute of the Telnet object

Specified by:
getFilterSource in interface StreamFilter
Returns:
The filterSource value

read

public int read(byte[] b)
         throws java.io.IOException
Description of the Method

Specified by:
read in interface StreamFilter
Parameters:
b - Description of the Parameter
Returns:
Description of the Return Value
Throws:
java.io.IOException - Description of the Exception

write

public void write(byte[] b)
           throws java.io.IOException
Description of the Method

Specified by:
write in interface StreamFilter
Parameters:
b - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception