public enum ReplyCode extends Enum<ReplyCode>
Enum Constant and Description |
---|
REPLY_000_SPECIAL_NOSTATUS
unofficial reply code for no value
|
REPLY_110_RESTART_MARKER_REPLY
110 Restart marker reply.
|
REPLY_120_SERVICE_READY_IN_NNN_MINUTES
120 Service ready in nnn minutes.
|
REPLY_125_DATA_CONNECTION_ALREADY_OPEN
125 Data connection already open), transfer starting.
|
REPLY_150_FILE_STATUS_OKAY
150 File status okay), about to open data connection.
|
REPLY_200_COMMAND_OKAY
200 Command okay.
|
REPLY_202_COMMAND_NOT_IMPLEMENTED
202 Command not implemented, superfluous at this site.
|
REPLY_211_SYSTEM_STATUS_REPLY
211 System status, or system help reply.
|
REPLY_212_DIRECTORY_STATUS
212 Directory status.
|
REPLY_213_FILE_STATUS
213 File status.
|
REPLY_214_HELP_MESSAGE
214 Help message.
|
REPLY_215_NAME_SYSTEM_TYPE
215 NAME system type.
|
REPLY_220_SERVICE_READY
220 Service ready for new user.
|
REPLY_221_CLOSING_CONTROL_CONNECTION
Service closing control connection.
|
REPLY_225_DATA_CONNECTION_OPEN_NO_TRANSFER_IN_PROGRESS
225 Data connection open), no transfer in progress.
|
REPLY_226_CLOSING_DATA_CONNECTION
Closing data connection.
|
REPLY_227_ENTERING_PASSIVE_MODE
227 Entering Passive Mode (h1,h2,h3,h4,p1,p2).
|
REPLY_229_ENTERING_PASSIVE_MODE
229 Entering Extended Passive Mode (|n|addr|port|).
|
REPLY_230_USER_LOGGED_IN
230 User logged in, proceed.
|
REPLY_232_USER_LOGGED_IN
232 User logged in, authorized by security data exchange.
|
REPLY_234_SECURITY_DATA_EXCHANGE_COMPLETE
234 Security data exchange complete.
|
REPLY_250_REQUESTED_FILE_ACTION_OKAY
250 Requested file action okay, completed.
|
REPLY_257_PATHNAME_CREATED
257 "PATHNAME" created.
|
REPLY_331_USER_NAME_OKAY_NEED_PASSWORD
331 User name okay, need password.
|
REPLY_332_NEED_ACCOUNT_FOR_LOGIN
332 Need account for login.
|
REPLY_350_REQUESTED_FILE_ACTION_PENDING_FURTHER_INFORMATION
350 Requested file action pending further information.
|
REPLY_421_SERVICE_NOT_AVAILABLE_CLOSING_CONTROL_CONNECTION
421 Service not available, closing control connection.
|
REPLY_425_CANT_OPEN_DATA_CONNECTION
425 Can't open data connection.
|
REPLY_426_CONNECTION_CLOSED_TRANSFER_ABORTED
426 Connection closed), transfer aborted.
|
REPLY_431_NEED_UNAVAILABLE_RESOURCE_TO_PROCESS_SECURITY
431 Need some unavailable resource to process security.
|
REPLY_450_REQUESTED_FILE_ACTION_NOT_TAKEN
450 Requested file action not taken.
|
REPLY_451_REQUESTED_ACTION_ABORTED
451 Requested action aborted: local error in processing.
|
REPLY_452_REQUESTED_ACTION_NOT_TAKEN
452 Requested action not taken.
|
REPLY_500_SYNTAX_ERROR_COMMAND_UNRECOGNIZED
500 Syntax error, command unrecognized.
|
REPLY_501_SYNTAX_ERROR_IN_PARAMETERS_OR_ARGUMENTS
501 Syntax error in parameters or arguments.
|
REPLY_502_COMMAND_NOT_IMPLEMENTED
502 Command not implemented.
|
REPLY_503_BAD_SEQUENCE_OF_COMMANDS
503 Bad sequence of commands.
|
REPLY_504_COMMAND_NOT_IMPLEMENTED_FOR_THAT_PARAMETER
504 Command not implemented for that parameter.
|
REPLY_522_EXTENDED_PORT_FAILURE_UNKNOWN_NETWORK_PROTOCOL
522 Extended Port Failure - unknown network protocol.
|
REPLY_530_NOT_LOGGED_IN
530 Not logged in.
|
REPLY_532_NEED_ACCOUNT_FOR_STORING_FILES
532 Need account for storing files.
|
REPLY_533_COMMAND_PROTECTION_LEVEL_DENIED_FOR_POLICY_REASONS
533 Command protection level denied for policy reasons.
|
REPLY_534_REQUEST_DENIED_FOR_POLICY_REASONS
534 Request denied for policy reasons.
|
REPLY_535_FAILED_SECURITY_CHECK
535 Failed security check (hash, sequence, etc).
|
REPLY_536_REQUESTED_PROT_LEVEL_NOT_SUPPORTED
536 Requested PROT level not supported by mechanism.
|
REPLY_550_REQUESTED_ACTION_NOT_TAKEN
550 Requested action not taken.
|
REPLY_551_REQUESTED_ACTION_ABORTED_PAGE_TYPE_UNKNOWN
551 Requested action aborted: page type unknown.
|
REPLY_552_REQUESTED_FILE_ACTION_ABORTED_EXCEEDED_STORAGE
552 Requested file action aborted.
|
REPLY_553_REQUESTED_ACTION_NOT_TAKEN_FILE_NAME_NOT_ALLOWED
553 Requested action not taken.
|
Modifier and Type | Field and Description |
---|---|
static String |
CRLF
CR LF
A User Telnet MUST be able to send any of the forms: CR LF, CR NUL, and LF. |
static String |
CRNUL
CR NUL
|
static String |
LF
LF
|
Modifier and Type | Method and Description |
---|---|
int |
getCode() |
static String |
getFinalMsg(int code,
String msg)
Return the final message formatted as needed from the code and the
message
|
String |
getMesg() |
static ReplyCode |
getReplyCode(int code) |
static ReplyCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReplyCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReplyCode REPLY_000_SPECIAL_NOSTATUS
public static final ReplyCode REPLY_110_RESTART_MARKER_REPLY
public static final ReplyCode REPLY_120_SERVICE_READY_IN_NNN_MINUTES
public static final ReplyCode REPLY_125_DATA_CONNECTION_ALREADY_OPEN
public static final ReplyCode REPLY_150_FILE_STATUS_OKAY
public static final ReplyCode REPLY_200_COMMAND_OKAY
public static final ReplyCode REPLY_202_COMMAND_NOT_IMPLEMENTED
public static final ReplyCode REPLY_211_SYSTEM_STATUS_REPLY
public static final ReplyCode REPLY_212_DIRECTORY_STATUS
public static final ReplyCode REPLY_213_FILE_STATUS
public static final ReplyCode REPLY_214_HELP_MESSAGE
public static final ReplyCode REPLY_215_NAME_SYSTEM_TYPE
public static final ReplyCode REPLY_220_SERVICE_READY
public static final ReplyCode REPLY_221_CLOSING_CONTROL_CONNECTION
public static final ReplyCode REPLY_225_DATA_CONNECTION_OPEN_NO_TRANSFER_IN_PROGRESS
public static final ReplyCode REPLY_226_CLOSING_DATA_CONNECTION
public static final ReplyCode REPLY_227_ENTERING_PASSIVE_MODE
public static final ReplyCode REPLY_229_ENTERING_PASSIVE_MODE
public static final ReplyCode REPLY_230_USER_LOGGED_IN
public static final ReplyCode REPLY_232_USER_LOGGED_IN
public static final ReplyCode REPLY_234_SECURITY_DATA_EXCHANGE_COMPLETE
public static final ReplyCode REPLY_250_REQUESTED_FILE_ACTION_OKAY
public static final ReplyCode REPLY_257_PATHNAME_CREATED
public static final ReplyCode REPLY_331_USER_NAME_OKAY_NEED_PASSWORD
public static final ReplyCode REPLY_332_NEED_ACCOUNT_FOR_LOGIN
public static final ReplyCode REPLY_350_REQUESTED_FILE_ACTION_PENDING_FURTHER_INFORMATION
public static final ReplyCode REPLY_421_SERVICE_NOT_AVAILABLE_CLOSING_CONTROL_CONNECTION
public static final ReplyCode REPLY_425_CANT_OPEN_DATA_CONNECTION
public static final ReplyCode REPLY_426_CONNECTION_CLOSED_TRANSFER_ABORTED
public static final ReplyCode REPLY_431_NEED_UNAVAILABLE_RESOURCE_TO_PROCESS_SECURITY
public static final ReplyCode REPLY_450_REQUESTED_FILE_ACTION_NOT_TAKEN
public static final ReplyCode REPLY_451_REQUESTED_ACTION_ABORTED
public static final ReplyCode REPLY_452_REQUESTED_ACTION_NOT_TAKEN
public static final ReplyCode REPLY_500_SYNTAX_ERROR_COMMAND_UNRECOGNIZED
public static final ReplyCode REPLY_501_SYNTAX_ERROR_IN_PARAMETERS_OR_ARGUMENTS
public static final ReplyCode REPLY_502_COMMAND_NOT_IMPLEMENTED
public static final ReplyCode REPLY_503_BAD_SEQUENCE_OF_COMMANDS
public static final ReplyCode REPLY_504_COMMAND_NOT_IMPLEMENTED_FOR_THAT_PARAMETER
public static final ReplyCode REPLY_522_EXTENDED_PORT_FAILURE_UNKNOWN_NETWORK_PROTOCOL
public static final ReplyCode REPLY_530_NOT_LOGGED_IN
public static final ReplyCode REPLY_532_NEED_ACCOUNT_FOR_STORING_FILES
public static final ReplyCode REPLY_533_COMMAND_PROTECTION_LEVEL_DENIED_FOR_POLICY_REASONS
public static final ReplyCode REPLY_534_REQUEST_DENIED_FOR_POLICY_REASONS
public static final ReplyCode REPLY_535_FAILED_SECURITY_CHECK
public static final ReplyCode REPLY_536_REQUESTED_PROT_LEVEL_NOT_SUPPORTED
public static final ReplyCode REPLY_550_REQUESTED_ACTION_NOT_TAKEN
public static final ReplyCode REPLY_551_REQUESTED_ACTION_ABORTED_PAGE_TYPE_UNKNOWN
public static final ReplyCode REPLY_552_REQUESTED_FILE_ACTION_ABORTED_EXCEEDED_STORAGE
public static final ReplyCode REPLY_553_REQUESTED_ACTION_NOT_TAKEN_FILE_NAME_NOT_ALLOWED
public static final String LF
public static final String CRNUL
public static final String CRLF
public static ReplyCode[] values()
for (ReplyCode c : ReplyCode.values()) System.out.println(c);
public static ReplyCode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static String getFinalMsg(int code, String msg)
code
- msg
- public int getCode()
public String getMesg()
public static ReplyCode getReplyCode(int code) throws InvalidArgumentException
code
- InvalidArgumentException
Copyright © 2009–2020 Waarp. All rights reserved.