FileDocCategorySizeDatePackage
TelnetOption.javaAPI DocApache Commons NET 1.4.1 API6227Sat Dec 03 10:05:50 GMT 2005org.apache.commons.net.telnet

TelnetOption

public class TelnetOption extends Object
The TelnetOption class cannot be instantiated and only serves as a storehouse for telnet option constants.

Details regarding Telnet option specification can be found in RFC 855.

author
Daniel F. Savarese
see
org.apache.commons.net.telnet.Telnet
see
org.apache.commons.net.telnet.TelnetClient

Fields Summary
public static final int
MAX_OPTION_VALUE
The maximum value an option code can have. This value is 255.
public static int
BINARY
public static int
ECHO
public static int
PREPARE_TO_RECONNECT
public static int
SUPPRESS_GO_AHEAD
public static int
APPROXIMATE_MESSAGE_SIZE
public static int
STATUS
public static int
TIMING_MARK
public static int
REMOTE_CONTROLLED_TRANSMISSION
public static int
NEGOTIATE_OUTPUT_LINE_WIDTH
public static int
NEGOTIATE_OUTPUT_PAGE_SIZE
public static int
NEGOTIATE_CARRIAGE_RETURN
public static int
NEGOTIATE_HORIZONTAL_TAB_STOP
public static int
NEGOTIATE_HORIZONTAL_TAB
public static int
NEGOTIATE_FORMFEED
public static int
NEGOTIATE_VERTICAL_TAB_STOP
public static int
NEGOTIATE_VERTICAL_TAB
public static int
NEGOTIATE_LINEFEED
public static int
EXTENDED_ASCII
public static int
FORCE_LOGOUT
public static int
BYTE_MACRO
public static int
DATA_ENTRY_TERMINAL
public static int
SUPDUP
public static int
SUPDUP_OUTPUT
public static int
SEND_LOCATION
public static int
TERMINAL_TYPE
public static int
END_OF_RECORD
public static int
TACACS_USER_IDENTIFICATION
public static int
OUTPUT_MARKING
public static int
TERMINAL_LOCATION_NUMBER
public static int
REGIME_3270
public static int
X3_PAD
public static int
WINDOW_SIZE
public static int
TERMINAL_SPEED
public static int
REMOTE_FLOW_CONTROL
public static int
LINEMODE
public static int
X_DISPLAY_LOCATION
public static int
OLD_ENVIRONMENT_VARIABLES
public static int
AUTHENTICATION
public static int
ENCRYPTION
public static int
NEW_ENVIRONMENT_VARIABLES
public static int
EXTENDED_OPTIONS_LIST
private static int
__FIRST_OPTION
private static int
__LAST_OPTION
private static final String[]
__optionString
Constructors Summary
private TelnetOption()

 
Methods Summary
public static final java.lang.StringgetOption(int code)
Returns the string representation of the telnet protocol option corresponding to the given option code.

param
code The option code of the telnet protocol option
return
The string representation of the telnet protocol option.



                                            
         
    
        if(__optionString[code].length() == 0)
        {
            return "UNASSIGNED";
        }
        else
        {
            return __optionString[code];
        }
    
public static final booleanisValidOption(int code)
Determines if a given option code is valid. Returns true if valid, false if not.

param
code The option code to test.
return
True if the option code is valid, false if not.

        return (code <= __LAST_OPTION);