Class TelnetCommand
java.lang.Object
org.apache.commons.net.telnet.TelnetCommand
The TelnetCommand class cannot be instantiated and only serves as a storehouse for Telnet command constants.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAbort code.static final intAbort Output code.static final intAre You There code.static final intBreak code.static final intData mark code.static final intRequest to use option code.static final intDon't use option code.static final intErase Character code.static final intErase Line code.static final intEnd of file code.static final intEnd of record code.static final intGo Ahead code.static final intInterpret As Command code.static final intInterrupt Process code.static final intThe maximum value a command code can have.static final intNo Operation code.static final intStart subnegotiation code.static final intEnd subnegotiation code.static final intSuspend process code.static final intSynchronize code.static final intAgree to use option code.static final intRefuse to use option code. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetCommand(int code) Gets the string representation of the Telnet protocol command corresponding to the given command code.static booleanisValidCommand(int code) Tests if a given command code is valid.
-
Field Details
-
MAX_COMMAND_VALUE
The maximum value a command code can have. This value is 255.- See Also:
-
IAC
-
DONT
-
DO
-
WONT
Refuse to use option code. Value is 252 according to RFC 854.- See Also:
-
WILL
-
SB
-
GA
-
EL
-
EC
-
AYT
-
AO
-
IP
-
BREAK
-
DM
-
NOP
-
SE
-
EOR
-
ABORT
-
SUSP
-
EOF
-
SYNCH
-
-
Method Details
-
getCommand
Gets the string representation of the Telnet protocol command corresponding to the given command code.- Parameters:
code- The command code of the Telnet protocol command.- Returns:
- The string representation of the Telnet protocol command.
-
isValidCommand
Tests if a given command code is valid. Returns true if valid, false if not.- Parameters:
code- The command code to test.- Returns:
- True if the command code is valid, false if not.
-