Package org.apache.commons.net.telnet
Class TelnetOption
- java.lang.Object
-
- org.apache.commons.net.telnet.TelnetOption
-
public class TelnetOption extends java.lang.ObjectThe 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.
- See Also:
Telnet,TelnetClient
-
-
Field Summary
Fields Modifier and Type Field Description static intAPPROXIMATE_MESSAGE_SIZE4static intAUTHENTICATION37static intBINARY0static intBYTE_MACRO19static intDATA_ENTRY_TERMINAL20static intECHO1static intENCRYPTION38static intEND_OF_RECORD25static intEXTENDED_ASCII17static intEXTENDED_OPTIONS_LIST255private static intFIRST_OPTION0static intFORCE_LOGOUT18private static intLAST_OPTION255static intLINEMODE34static intMAX_OPTION_VALUEThe maximum value an option code can have.static intNEGOTIATE_CARRIAGE_RETURN10static intNEGOTIATE_FORMFEED13static intNEGOTIATE_HORIZONTAL_TAB12static intNEGOTIATE_HORIZONTAL_TAB_STOP11static intNEGOTIATE_LINEFEED16static intNEGOTIATE_OUTPUT_LINE_WIDTH8static intNEGOTIATE_OUTPUT_PAGE_SIZE9static intNEGOTIATE_VERTICAL_TAB15static intNEGOTIATE_VERTICAL_TAB_STOP14static intNEW_ENVIRONMENT_VARIABLES39static intOLD_ENVIRONMENT_VARIABLES36private static java.lang.String[]optionStringstatic intOUTPUT_MARKING27static intPREPARE_TO_RECONNECT2static intREGIME_327029static intREMOTE_CONTROLLED_TRANSMISSION7static intREMOTE_FLOW_CONTROL33static intSEND_LOCATION23static intSTATUS5static intSUPDUP21static intSUPDUP_OUTPUT22static intSUPPRESS_GO_AHEAD3static intTACACS_USER_IDENTIFICATION26static intTERMINAL_LOCATION_NUMBER28static intTERMINAL_SPEED32static intTERMINAL_TYPE24static intTIMING_MARK6static intWINDOW_SIZE31static intX_DISPLAY_LOCATION35static intX3_PAD30
-
Constructor Summary
Constructors Modifier Constructor Description privateTelnetOption()Cannot be instantiated.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetOption(int code)Returns the string representation of the Telnet protocol option corresponding to the given option code.static booleanisValidOption(int code)Determines if a given option code is valid.
-
-
-
Field Detail
-
MAX_OPTION_VALUE
public static final int MAX_OPTION_VALUE
The maximum value an option code can have. This value is 255.- See Also:
- Constant Field Values
-
BINARY
public static final int BINARY
0- See Also:
- Constant Field Values
-
ECHO
public static final int ECHO
1- See Also:
- Constant Field Values
-
PREPARE_TO_RECONNECT
public static final int PREPARE_TO_RECONNECT
2- See Also:
- Constant Field Values
-
SUPPRESS_GO_AHEAD
public static final int SUPPRESS_GO_AHEAD
3- See Also:
- Constant Field Values
-
APPROXIMATE_MESSAGE_SIZE
public static final int APPROXIMATE_MESSAGE_SIZE
4- See Also:
- Constant Field Values
-
STATUS
public static final int STATUS
5- See Also:
- Constant Field Values
-
TIMING_MARK
public static final int TIMING_MARK
6- See Also:
- Constant Field Values
-
REMOTE_CONTROLLED_TRANSMISSION
public static final int REMOTE_CONTROLLED_TRANSMISSION
7- See Also:
- Constant Field Values
-
NEGOTIATE_OUTPUT_LINE_WIDTH
public static final int NEGOTIATE_OUTPUT_LINE_WIDTH
8- See Also:
- Constant Field Values
-
NEGOTIATE_OUTPUT_PAGE_SIZE
public static final int NEGOTIATE_OUTPUT_PAGE_SIZE
9- See Also:
- Constant Field Values
-
NEGOTIATE_CARRIAGE_RETURN
public static final int NEGOTIATE_CARRIAGE_RETURN
10- See Also:
- Constant Field Values
-
NEGOTIATE_HORIZONTAL_TAB_STOP
public static final int NEGOTIATE_HORIZONTAL_TAB_STOP
11- See Also:
- Constant Field Values
-
NEGOTIATE_HORIZONTAL_TAB
public static final int NEGOTIATE_HORIZONTAL_TAB
12- See Also:
- Constant Field Values
-
NEGOTIATE_FORMFEED
public static final int NEGOTIATE_FORMFEED
13- See Also:
- Constant Field Values
-
NEGOTIATE_VERTICAL_TAB_STOP
public static final int NEGOTIATE_VERTICAL_TAB_STOP
14- See Also:
- Constant Field Values
-
NEGOTIATE_VERTICAL_TAB
public static final int NEGOTIATE_VERTICAL_TAB
15- See Also:
- Constant Field Values
-
NEGOTIATE_LINEFEED
public static final int NEGOTIATE_LINEFEED
16- See Also:
- Constant Field Values
-
EXTENDED_ASCII
public static final int EXTENDED_ASCII
17- See Also:
- Constant Field Values
-
FORCE_LOGOUT
public static final int FORCE_LOGOUT
18- See Also:
- Constant Field Values
-
BYTE_MACRO
public static final int BYTE_MACRO
19- See Also:
- Constant Field Values
-
DATA_ENTRY_TERMINAL
public static final int DATA_ENTRY_TERMINAL
20- See Also:
- Constant Field Values
-
SUPDUP
public static final int SUPDUP
21- See Also:
- Constant Field Values
-
SUPDUP_OUTPUT
public static final int SUPDUP_OUTPUT
22- See Also:
- Constant Field Values
-
SEND_LOCATION
public static final int SEND_LOCATION
23- See Also:
- Constant Field Values
-
TERMINAL_TYPE
public static final int TERMINAL_TYPE
24- See Also:
- Constant Field Values
-
END_OF_RECORD
public static final int END_OF_RECORD
25- See Also:
- Constant Field Values
-
TACACS_USER_IDENTIFICATION
public static final int TACACS_USER_IDENTIFICATION
26- See Also:
- Constant Field Values
-
OUTPUT_MARKING
public static final int OUTPUT_MARKING
27- See Also:
- Constant Field Values
-
TERMINAL_LOCATION_NUMBER
public static final int TERMINAL_LOCATION_NUMBER
28- See Also:
- Constant Field Values
-
REGIME_3270
public static final int REGIME_3270
29- See Also:
- Constant Field Values
-
X3_PAD
public static final int X3_PAD
30- See Also:
- Constant Field Values
-
WINDOW_SIZE
public static final int WINDOW_SIZE
31- See Also:
- Constant Field Values
-
TERMINAL_SPEED
public static final int TERMINAL_SPEED
32- See Also:
- Constant Field Values
-
REMOTE_FLOW_CONTROL
public static final int REMOTE_FLOW_CONTROL
33- See Also:
- Constant Field Values
-
LINEMODE
public static final int LINEMODE
34- See Also:
- Constant Field Values
-
X_DISPLAY_LOCATION
public static final int X_DISPLAY_LOCATION
35- See Also:
- Constant Field Values
-
OLD_ENVIRONMENT_VARIABLES
public static final int OLD_ENVIRONMENT_VARIABLES
36- See Also:
- Constant Field Values
-
AUTHENTICATION
public static final int AUTHENTICATION
37- See Also:
- Constant Field Values
-
ENCRYPTION
public static final int ENCRYPTION
38- See Also:
- Constant Field Values
-
NEW_ENVIRONMENT_VARIABLES
public static final int NEW_ENVIRONMENT_VARIABLES
39- See Also:
- Constant Field Values
-
EXTENDED_OPTIONS_LIST
public static final int EXTENDED_OPTIONS_LIST
255- See Also:
- Constant Field Values
-
FIRST_OPTION
private static final int FIRST_OPTION
0- See Also:
- Constant Field Values
-
LAST_OPTION
private static final int LAST_OPTION
255- See Also:
- Constant Field Values
-
optionString
private static final java.lang.String[] optionString
-
-
Method Detail
-
getOption
public static final java.lang.String getOption(int code)
Returns the string representation of the Telnet protocol option corresponding to the given option code.- Parameters:
code- The option code of the Telnet protocol option- Returns:
- The string representation of the Telnet protocol option.
-
isValidOption
public static final boolean isValidOption(int code)
Determines if a given option code is valid. Returns true if valid, false if not.- Parameters:
code- The option code to test.- Returns:
- True if the option code is valid, false if not.
-
-