goldengate.common.command
Enum ReplyCode

java.lang.Object
  extended by java.lang.Enum<ReplyCode>
      extended by goldengate.common.command.ReplyCode
All Implemented Interfaces:
Serializable, Comparable<ReplyCode>

public enum ReplyCode
extends Enum<ReplyCode>

Reply code references by different RFC.

Author:
Frederic Bregier

Enum Constant Summary
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_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_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_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.
 
Field Summary
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
 
Method Summary
 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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

REPLY_000_SPECIAL_NOSTATUS

public static final ReplyCode REPLY_000_SPECIAL_NOSTATUS
unofficial reply code for no value


REPLY_110_RESTART_MARKER_REPLY

public static final ReplyCode REPLY_110_RESTART_MARKER_REPLY
110 Restart marker reply. In this case, the text is exact and not left to the particular implementation), it must read: MARK yyyy (mmmm Where yyyy is User-process data stream marker, and mmmm server's equivalent marker (note the spaces between markers and "=").


REPLY_120_SERVICE_READY_IN_NNN_MINUTES

public static final ReplyCode REPLY_120_SERVICE_READY_IN_NNN_MINUTES
120 Service ready in nnn minutes.


REPLY_125_DATA_CONNECTION_ALREADY_OPEN

public static final ReplyCode REPLY_125_DATA_CONNECTION_ALREADY_OPEN
125 Data connection already open), transfer starting.


REPLY_150_FILE_STATUS_OKAY

public static final ReplyCode REPLY_150_FILE_STATUS_OKAY
150 File status okay), about to open data connection.


REPLY_200_COMMAND_OKAY

public static final ReplyCode REPLY_200_COMMAND_OKAY
200 Command okay.


REPLY_202_COMMAND_NOT_IMPLEMENTED

public static final ReplyCode REPLY_202_COMMAND_NOT_IMPLEMENTED
202 Command not implemented, superfluous at this site.


REPLY_211_SYSTEM_STATUS_REPLY

public static final ReplyCode REPLY_211_SYSTEM_STATUS_REPLY
211 System status, or system help reply.


REPLY_212_DIRECTORY_STATUS

public static final ReplyCode REPLY_212_DIRECTORY_STATUS
212 Directory status.


REPLY_213_FILE_STATUS

public static final ReplyCode REPLY_213_FILE_STATUS
213 File status.


REPLY_214_HELP_MESSAGE

public static final ReplyCode REPLY_214_HELP_MESSAGE
214 Help message. On how to use the server or the meaning of a particular non-standard command. This reply is useful only to the human user.


REPLY_215_NAME_SYSTEM_TYPE

public static final ReplyCode REPLY_215_NAME_SYSTEM_TYPE
215 NAME system type. Where NAME is an official system name from the list in the Assigned Numbers document.


REPLY_220_SERVICE_READY

public static final ReplyCode REPLY_220_SERVICE_READY
220 Service ready for new user.


REPLY_221_CLOSING_CONTROL_CONNECTION

public static final ReplyCode REPLY_221_CLOSING_CONTROL_CONNECTION
Service closing control connection. Logged out if appropriate.


REPLY_225_DATA_CONNECTION_OPEN_NO_TRANSFER_IN_PROGRESS

public static final ReplyCode REPLY_225_DATA_CONNECTION_OPEN_NO_TRANSFER_IN_PROGRESS
225 Data connection open), no transfer in progress.


REPLY_226_CLOSING_DATA_CONNECTION

public static final ReplyCode REPLY_226_CLOSING_DATA_CONNECTION
Closing data connection. Requested file action successful (for example, file transfer or file abort).


REPLY_227_ENTERING_PASSIVE_MODE

public static final ReplyCode REPLY_227_ENTERING_PASSIVE_MODE
227 Entering Passive Mode (h1,h2,h3,h4,p1,p2).


REPLY_229_ENTERING_PASSIVE_MODE

public static final ReplyCode REPLY_229_ENTERING_PASSIVE_MODE
229 Entering Extended Passive Mode (|n|addr|port|).


REPLY_230_USER_LOGGED_IN

public static final ReplyCode REPLY_230_USER_LOGGED_IN
230 User logged in, proceed.


REPLY_250_REQUESTED_FILE_ACTION_OKAY

public static final ReplyCode REPLY_250_REQUESTED_FILE_ACTION_OKAY
250 Requested file action okay, completed.


REPLY_257_PATHNAME_CREATED

public static final ReplyCode REPLY_257_PATHNAME_CREATED
257 "PATHNAME" created.


REPLY_331_USER_NAME_OKAY_NEED_PASSWORD

public static final ReplyCode REPLY_331_USER_NAME_OKAY_NEED_PASSWORD
331 User name okay, need password.


REPLY_332_NEED_ACCOUNT_FOR_LOGIN

public static final ReplyCode REPLY_332_NEED_ACCOUNT_FOR_LOGIN
332 Need account for login.


REPLY_350_REQUESTED_FILE_ACTION_PENDING_FURTHER_INFORMATION

public static final ReplyCode REPLY_350_REQUESTED_FILE_ACTION_PENDING_FURTHER_INFORMATION
350 Requested file action pending further information.


REPLY_421_SERVICE_NOT_AVAILABLE_CLOSING_CONTROL_CONNECTION

public static final ReplyCode REPLY_421_SERVICE_NOT_AVAILABLE_CLOSING_CONTROL_CONNECTION
421 Service not available, closing control connection. This may be a reply to any command if the service knows it must shut down.


REPLY_425_CANT_OPEN_DATA_CONNECTION

public static final ReplyCode REPLY_425_CANT_OPEN_DATA_CONNECTION
425 Can't open data connection.


REPLY_426_CONNECTION_CLOSED_TRANSFER_ABORTED

public static final ReplyCode REPLY_426_CONNECTION_CLOSED_TRANSFER_ABORTED
426 Connection closed), transfer aborted.


REPLY_450_REQUESTED_FILE_ACTION_NOT_TAKEN

public static final ReplyCode REPLY_450_REQUESTED_FILE_ACTION_NOT_TAKEN
450 Requested file action not taken. File unavailable (e.g., file busy).


REPLY_451_REQUESTED_ACTION_ABORTED

public static final ReplyCode REPLY_451_REQUESTED_ACTION_ABORTED
451 Requested action aborted: local error in processing.


REPLY_452_REQUESTED_ACTION_NOT_TAKEN

public static final ReplyCode REPLY_452_REQUESTED_ACTION_NOT_TAKEN
452 Requested action not taken. Insufficient storage space in system.


REPLY_500_SYNTAX_ERROR_COMMAND_UNRECOGNIZED

public static final ReplyCode REPLY_500_SYNTAX_ERROR_COMMAND_UNRECOGNIZED
500 Syntax error, command unrecognized. This may include errors such as command line too long.


REPLY_501_SYNTAX_ERROR_IN_PARAMETERS_OR_ARGUMENTS

public static final ReplyCode REPLY_501_SYNTAX_ERROR_IN_PARAMETERS_OR_ARGUMENTS
501 Syntax error in parameters or arguments.


REPLY_502_COMMAND_NOT_IMPLEMENTED

public static final ReplyCode REPLY_502_COMMAND_NOT_IMPLEMENTED
502 Command not implemented.


REPLY_503_BAD_SEQUENCE_OF_COMMANDS

public static final ReplyCode REPLY_503_BAD_SEQUENCE_OF_COMMANDS
503 Bad sequence of commands.


REPLY_504_COMMAND_NOT_IMPLEMENTED_FOR_THAT_PARAMETER

public static final ReplyCode REPLY_504_COMMAND_NOT_IMPLEMENTED_FOR_THAT_PARAMETER
504 Command not implemented for that parameter.


REPLY_522_EXTENDED_PORT_FAILURE_UNKNOWN_NETWORK_PROTOCOL

public static final ReplyCode REPLY_522_EXTENDED_PORT_FAILURE_UNKNOWN_NETWORK_PROTOCOL
522 Extended Port Failure - unknown network protocol.


REPLY_530_NOT_LOGGED_IN

public static final ReplyCode REPLY_530_NOT_LOGGED_IN
530 Not logged in.


REPLY_532_NEED_ACCOUNT_FOR_STORING_FILES

public static final ReplyCode REPLY_532_NEED_ACCOUNT_FOR_STORING_FILES
532 Need account for storing files.


REPLY_550_REQUESTED_ACTION_NOT_TAKEN

public static final ReplyCode REPLY_550_REQUESTED_ACTION_NOT_TAKEN
550 Requested action not taken. File unavailable (e.g., file not found, no access).


REPLY_551_REQUESTED_ACTION_ABORTED_PAGE_TYPE_UNKNOWN

public static final ReplyCode REPLY_551_REQUESTED_ACTION_ABORTED_PAGE_TYPE_UNKNOWN
551 Requested action aborted: page type unknown.


REPLY_552_REQUESTED_FILE_ACTION_ABORTED_EXCEEDED_STORAGE

public static final ReplyCode REPLY_552_REQUESTED_FILE_ACTION_ABORTED_EXCEEDED_STORAGE
552 Requested file action aborted. Exceeded storage allocation (for current directory or dataset).


REPLY_553_REQUESTED_ACTION_NOT_TAKEN_FILE_NAME_NOT_ALLOWED

public static final ReplyCode REPLY_553_REQUESTED_ACTION_NOT_TAKEN_FILE_NAME_NOT_ALLOWED
553 Requested action not taken. File name not allowed.

Field Detail

LF

public static final String LF
LF

See Also:
Constant Field Values

CRNUL

public static final String CRNUL
CR NUL

See Also:
Constant Field Values

CRLF

public static final String CRLF
CR LF
A User Telnet MUST be able to send any of the forms: CR LF, CR NUL, and LF. A User Telnet on an ASCII host SHOULD have a user-controllable mode to send either CR LF or CR NUL when the user presses the "end-of-line" key, and CR LF SHOULD be the default.

See Also:
Constant Field Values
Method Detail

values

public static ReplyCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ReplyCode c : ReplyCode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ReplyCode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getFinalMsg

public static String getFinalMsg(int code,
                                 String msg)
Return the final message formatted as needed from the code and the message

Parameters:
code -
msg -
Returns:
the final formatted message

getCode

public int getCode()
Returns:
the code

getMesg

public String getMesg()
Returns:
the mesg

getReplyCode

public static ReplyCode getReplyCode(int code)
                              throws InvalidArgumentException
Parameters:
code -
Returns:
the associated ReplyCode from the given numerical code
Throws:
InvalidArgumentException


Copyright © 2009-2012 Frederic Bregier. All Rights Reserved.