Package org.apache.commons.net.telnet
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 SummaryFieldsModifier 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 SummaryModifier and TypeMethodDescriptionstatic StringgetCommand(int code) Returns the string representation of the telnet protocol command corresponding to the given command code.static booleanisValidCommand(int code) Determines if a given command code is valid.
- 
Field Details- 
MAX_COMMAND_VALUEThe maximum value a command code can have. This value is 255.- See Also:
 
- 
IACInterpret As Command code. Value is 255 according to RFC 854.- See Also:
 
- 
DONTDon't use option code. Value is 254 according to RFC 854.- See Also:
 
- 
DORequest to use option code. Value is 253 according to RFC 854.- See Also:
 
- 
WONTRefuse to use option code. Value is 252 according to RFC 854.- See Also:
 
- 
WILLAgree to use option code. Value is 251 according to RFC 854.- See Also:
 
- 
SBStart subnegotiation code. Value is 250 according to RFC 854.- See Also:
 
- 
GAGo Ahead code. Value is 249 according to RFC 854.- See Also:
 
- 
ELErase Line code. Value is 248 according to RFC 854.- See Also:
 
- 
ECErase Character code. Value is 247 according to RFC 854.- See Also:
 
- 
AYTAre You There code. Value is 246 according to RFC 854.- See Also:
 
- 
AOAbort Output code. Value is 245 according to RFC 854.- See Also:
 
- 
IPInterrupt Process code. Value is 244 according to RFC 854.- See Also:
 
- 
BREAKBreak code. Value is 243 according to RFC 854.- See Also:
 
- 
DMData mark code. Value is 242 according to RFC 854.- See Also:
 
- 
NOPNo Operation code. Value is 241 according to RFC 854.- See Also:
 
- 
SEEnd subnegotiation code. Value is 240 according to RFC 854.- See Also:
 
- 
EOREnd of record code. Value is 239.- See Also:
 
- 
ABORTAbort code. Value is 238.- See Also:
 
- 
SUSPSuspend process code. Value is 237.- See Also:
 
- 
EOFEnd of file code. Value is 236.- See Also:
 
- 
SYNCHSynchronize code. Value is 242.- See Also:
 
 
- 
- 
Method Details- 
getCommandReturns 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.
 
- 
isValidCommandDetermines 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.
 
 
-