Package com.oroinc.net.telnet
Class TelnetCommand
java.lang.Object
com.oroinc.net.telnet.TelnetCommand
The TelnetCommand class cannot be instantiated and only serves as a
storehouse for telnet command constants.
- Author:
- Daniel F. Savarese
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Abort code.static final int
Abort Output code.static final int
Are You There code.static final int
Break code.static final int
Data mark code.static final int
Request to use option code.static final int
Don't use option code.static final int
Erase Character code.static final int
Erase Line code.static final int
End of file code.static final int
End of record code.static final int
Go Ahead code.static final int
Interpret As Command code.static final int
Interrupt Process code.static final int
The maximum value a command code can have.static final int
No Operation code.static final int
Start subnegotiation code.static final int
End subnegotiation code.static final int
Suspend process code.static final int
Synchronize code.static final int
Agree to use option code.static final int
Refuse to use option code. -
Method Summary
Modifier and TypeMethodDescriptionstatic final String
getCommand
(int code) Returns the string representation of the telnet protocol command corresponding to the given command code.static final boolean
isValidCommand
(int code) Determines if a given command code is valid.
-
Field Details
-
MAX_COMMAND_VALUE
public static final int MAX_COMMAND_VALUEThe maximum value a command code can have. This value is 255.- See Also:
-
IAC
public static final int IACInterpret As Command code. Value is 255 according to RFC 854.- See Also:
-
DONT
public static final int DONTDon't use option code. Value is 254 according to RFC 854.- See Also:
-
DO
public static final int DORequest to use option code. Value is 253 according to RFC 854.- See Also:
-
WONT
public static final int WONTRefuse to use option code. Value is 252 according to RFC 854.- See Also:
-
WILL
public static final int WILLAgree to use option code. Value is 251 according to RFC 854.- See Also:
-
SB
public static final int SBStart subnegotiation code. Value is 250 according to RFC 854.- See Also:
-
GA
public static final int GAGo Ahead code. Value is 249 according to RFC 854.- See Also:
-
EL
public static final int ELErase Line code. Value is 248 according to RFC 854.- See Also:
-
EC
public static final int ECErase Character code. Value is 247 according to RFC 854.- See Also:
-
AYT
public static final int AYTAre You There code. Value is 246 according to RFC 854.- See Also:
-
AO
public static final int AOAbort Output code. Value is 245 according to RFC 854.- See Also:
-
IP
public static final int IPInterrupt Process code. Value is 244 according to RFC 854.- See Also:
-
BREAK
public static final int BREAKBreak code. Value is 243 according to RFC 854.- See Also:
-
DM
public static final int DMData mark code. Value is 242 according to RFC 854.- See Also:
-
NOP
public static final int NOPNo Operation code. Value is 241 according to RFC 854.- See Also:
-
SE
public static final int SEEnd subnegotiation code. Value is 240 according to RFC 854.- See Also:
-
EOR
public static final int EOREnd of record code. Value is 239.- See Also:
-
ABORT
public static final int ABORTAbort code. Value is 238.- See Also:
-
SUSP
public static final int SUSPSuspend process code. Value is 237.- See Also:
-
EOF
public static final int EOFEnd of file code. Value is 236.- See Also:
-
SYNCH
public static final int SYNCHSynchronize code. Value is 242.- See Also:
-
-
Method Details
-
getCommand
Returns the string representation of the telnet protocol command corresponding to the given command code.- Parameters:
The
- command code of the telnet protocol command.- Returns:
- The string representation of the telnet protocol command.
-
isValidCommand
public static final boolean isValidCommand(int code) Determines 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.
-