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:
-
Telnet
TelnetClient
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
The maximum value an option code can have.static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
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
- See Also:
-
ECHO
- See Also:
-
PREPARE_TO_RECONNECT
- See Also:
-
SUPPRESS_GO_AHEAD
- See Also:
-
APPROXIMATE_MESSAGE_SIZE
- See Also:
-
STATUS
- See Also:
-
TIMING_MARK
- See Also:
-
REMOTE_CONTROLLED_TRANSMISSION
- See Also:
-
NEGOTIATE_OUTPUT_LINE_WIDTH
- See Also:
-
NEGOTIATE_OUTPUT_PAGE_SIZE
- See Also:
-
NEGOTIATE_CARRIAGE_RETURN
- See Also:
-
NEGOTIATE_HORIZONTAL_TAB_STOP
- See Also:
-
NEGOTIATE_HORIZONTAL_TAB
- See Also:
-
NEGOTIATE_FORMFEED
- See Also:
-
NEGOTIATE_VERTICAL_TAB_STOP
- See Also:
-
NEGOTIATE_VERTICAL_TAB
- See Also:
-
NEGOTIATE_LINEFEED
- See Also:
-
EXTENDED_ASCII
- See Also:
-
FORCE_LOGOUT
- See Also:
-
BYTE_MACRO
- See Also:
-
DATA_ENTRY_TERMINAL
- See Also:
-
SUPDUP
- See Also:
-
SUPDUP_OUTPUT
- See Also:
-
SEND_LOCATION
- See Also:
-
TERMINAL_TYPE
- See Also:
-
END_OF_RECORD
- See Also:
-
TACACS_USER_IDENTIFICATION
- See Also:
-
OUTPUT_MARKING
- See Also:
-
TERMINAL_LOCATION_NUMBER
- See Also:
-
REGIME_3270
- See Also:
-
X3_PAD
- See Also:
-
WINDOW_SIZE
- See Also:
-
TERMINAL_SPEED
- See Also:
-
REMOTE_FLOW_CONTROL
- See Also:
-
LINEMODE
- See Also:
-
X_DISPLAY_LOCATION
- See Also:
-
OLD_ENVIRONMENT_VARIABLES
- See Also:
-
AUTHENTICATION
- See Also:
-
ENCRYPTION
- See Also:
-
NEW_ENVIRONMENT_VARIABLES
- See Also:
-
EXTENDED_OPTIONS_LIST
- 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.
-