de.mud.jta.plugin
Class Telnet
java.lang.Object
  |
  +--de.mud.jta.Plugin
        |
        +--de.mud.jta.plugin.Telnet
- All Implemented Interfaces: 
- FilterPlugin
- public class Telnet- extends Plugin- implements FilterPlugin
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 2.16 2003/11/16 12:38:03 marcus Exp $
- Author:
- Matthias L. Jugel, Marcus Meissner
 
 
| Constructor Summary | 
| Telnet(PluginBus bus,
       java.lang.String id)Create a new telnet plugin.
 | 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
source
protected FilterPlugin source
handler
protected TelnetProtocolHandler handler
Telnet
public Telnet(PluginBus bus,
              java.lang.String id)
- Create a new telnet plugin.
 
configure
public void configure(PluginConfig cfg)
- 
 
- 
 
setFilterSource
public void setFilterSource(FilterPlugin source)
- Description copied from interface: FilterPlugin
- Set the source plugin where we get our data from and where the data
 sink (write) is. The actual data handling should be done in the
 read() and write() methods.
 
- 
- Specified by:
- setFilterSourcein interface- FilterPlugin
 
- 
- Parameters:
- source- the data source
 
getFilterSource
public FilterPlugin getFilterSource()
- 
- Specified by:
- getFilterSourcein interface- FilterPlugin
 
- 
 
read
public int read(byte[] b)
         throws java.io.IOException
- Description copied from interface: FilterPlugin
- Read a block of data from the back end.
 
- 
- Specified by:
- readin interface- FilterPlugin
 
- 
- Parameters:
- b- the buffer to read the data into
- Returns:
- the amount of bytes actually read
- java.io.IOException
 
write
public void write(byte[] b)
           throws java.io.IOException
- Description copied from interface: FilterPlugin
- Write a block of data to the back end.
 
- 
- Specified by:
- writein interface- FilterPlugin
 
- 
- Parameters:
- b- the buffer to be sent
- java.io.IOException