org.sadun.util
Class TelnetInputStream.BasicNVTListener

java.lang.Object
  extended byorg.sadun.util.TelnetInputStream.BasicNVTListener
All Implemented Interfaces:
TelnetInputStream.TelnetCommandListener
Enclosing class:
TelnetInputStream

public static class TelnetInputStream.BasicNVTListener
extends java.lang.Object
implements TelnetInputStream.TelnetCommandListener

A standard TelnetInputStream.TelnetCommandListenerthat refuses any option and suggestions, limiting the functionality to the basic Telnet NVT (network virtual terminal) functionality.

Author:
Cristiano Sadun

Field Summary
protected  java.io.OutputStream os
           
 
Constructor Summary
TelnetInputStream.BasicNVTListener(java.io.OutputStream os)
          Create a listener which answers Telnet commands on the given output stream.
 
Method Summary
 void telnetCommandReceived(TelnetInputStream is, TelnetInputStream.TelnetCommand command)
          Reply WON'T to any DO command and DON'T to any WILL command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

os

protected java.io.OutputStream os
Constructor Detail

TelnetInputStream.BasicNVTListener

public TelnetInputStream.BasicNVTListener(java.io.OutputStream os)
Create a listener which answers Telnet commands on the given output stream.

Parameters:
os -
Method Detail

telnetCommandReceived

public void telnetCommandReceived(TelnetInputStream is,
                                  TelnetInputStream.TelnetCommand command)
                           throws java.io.IOException
Reply WON'T to any DO command and DON'T to any WILL command. Other commands are ignored.

Specified by:
telnetCommandReceived in interface TelnetInputStream.TelnetCommandListener
Parameters:
is -
command -
Throws:
java.io.IOException