Package org.apache.commons.net.telnet
Class TelnetOption
java.lang.Object
org.apache.commons.net.telnet.TelnetOption
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.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
4static final int
37static final int
0static final int
19static final int
20static final int
1static final int
38static final int
25static final int
17static final int
255static final int
18static final int
34static final int
The maximum value an option code can have.static final int
10static final int
13static final int
12static final int
11static final int
16static final int
8static final int
9static final int
15static final int
14static final int
39static final int
36static final int
27static final int
2static final int
29static final int
7static final int
33static final int
23static final int
5static final int
21static final int
22static final int
3static final int
26static final int
28static final int
32static final int
24static final int
6static final int
31static final int
35static final int
30 -
Method Summary
Modifier and TypeMethodDescriptionstatic final String
getOption
(int code) Returns the string representation of the telnet protocol option corresponding to the given option code.static final boolean
isValidOption
(int code) Determines if a given option code is valid.
-
Field Details
-
MAX_OPTION_VALUE
The maximum value an option code can have. This value is 255.- See Also:
-
BINARY
0- See Also:
-
ECHO
1- See Also:
-
PREPARE_TO_RECONNECT
2- See Also:
-
SUPPRESS_GO_AHEAD
3- See Also:
-
APPROXIMATE_MESSAGE_SIZE
4- See Also:
-
STATUS
5- See Also:
-
TIMING_MARK
6- See Also:
-
REMOTE_CONTROLLED_TRANSMISSION
7- See Also:
-
NEGOTIATE_OUTPUT_LINE_WIDTH
8- See Also:
-
NEGOTIATE_OUTPUT_PAGE_SIZE
9- See Also:
-
NEGOTIATE_CARRIAGE_RETURN
10- See Also:
-
NEGOTIATE_HORIZONTAL_TAB_STOP
11- See Also:
-
NEGOTIATE_HORIZONTAL_TAB
12- See Also:
-
NEGOTIATE_FORMFEED
13- See Also:
-
NEGOTIATE_VERTICAL_TAB_STOP
14- See Also:
-
NEGOTIATE_VERTICAL_TAB
15- See Also:
-
NEGOTIATE_LINEFEED
16- See Also:
-
EXTENDED_ASCII
17- See Also:
-
FORCE_LOGOUT
18- See Also:
-
BYTE_MACRO
19- See Also:
-
DATA_ENTRY_TERMINAL
20- See Also:
-
SUPDUP
21- See Also:
-
SUPDUP_OUTPUT
22- See Also:
-
SEND_LOCATION
23- See Also:
-
TERMINAL_TYPE
24- See Also:
-
END_OF_RECORD
25- See Also:
-
TACACS_USER_IDENTIFICATION
26- See Also:
-
OUTPUT_MARKING
27- See Also:
-
TERMINAL_LOCATION_NUMBER
28- See Also:
-
REGIME_3270
29- See Also:
-
X3_PAD
30- See Also:
-
WINDOW_SIZE
31- See Also:
-
TERMINAL_SPEED
32- See Also:
-
REMOTE_FLOW_CONTROL
33- See Also:
-
LINEMODE
34- See Also:
-
X_DISPLAY_LOCATION
35- See Also:
-
OLD_ENVIRONMENT_VARIABLES
36- See Also:
-
AUTHENTICATION
37- See Also:
-
ENCRYPTION
38- See Also:
-
NEW_ENVIRONMENT_VARIABLES
39- See Also:
-
EXTENDED_OPTIONS_LIST
255- See Also:
-
-
Method Details
-
getOption
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
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.
-