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
FieldsModifier and TypeFieldDescriptionstatic final int4static final int37static final int0static final int19static final int20static final int1static final int38static final int25static final int17static final int255static final int18static final int34static final intThe maximum value an option code can have.static final int10static final int13static final int12static final int11static final int16static final int8static final int9static final int15static final int14static final int39static final int36static final int27static final int2static final int29static final int7static final int33static final int23static final int5static final int21static final int22static final int3static final int26static final int28static final int32static final int24static final int6static final int31static final int35static final int30 -
Method Summary
Modifier and TypeMethodDescriptionstatic final StringgetOption(int code) Returns the string representation of the Telnet protocol option corresponding to the given option code.static final booleanisValidOption(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.
-