KindFTP
© 1998-2001 Joseph Kiniry
© 2001 KindSoftware
All Rights Reserved

kindftp
Class ReplyCodes

java.lang.Object
  |
  +--java.util.Dictionary
        |
        +--java.util.Hashtable
              |
              +--kindftp.ReplyCodes

public class ReplyCodes
extends java.util.Hashtable

Reply codes for debugging purposes.

The codes' English interpretations are stored in a hashtable for lookup using convertCode. They are taken directory from RFC959.

Since:
KindFTP initial release.
Author:
Joseph R. Kiniry
See Also:
Serialized Form

Field Summary
static int ACTION_ABORTED_EXCEEDED_STORAGE_ALLOCATION
           
static int ACTION_ABORTED_LOCAL_ERROR
           
static int ACTION_ABORTED_PAGE_TYPE_UNKNOWN
           
static int ACTION_NOT_TAKEN_FILE_NAME_NOT_ALLOWED
           
static int ACTION_NOT_TAKEN_FILE_UNAVAILABLE
           
static int ACTION_NOT_TAKEN_FILE_UNAVAILABLE_FILE_BUSY
           
static int ACTION_NOT_TAKEN_INSUFFICIENT_STORAGE_SPACE
           
static int AUTHENTICATION_AND_ACCOUNTING
           
static int BAD_SEQUENCE_OF_COMMANDS
           
static int CANNOT_OPEN_DATA_CONNECTION
           
static int CLOSING_DATA_CONNECTION_AFTER_SUCCESSFUL_ACTION
           
static int COMMAND_NOT_IMPLEMENTED
           
static int COMMAND_NOT_IMPLEMENTED_FOR_THAT_PARAMETER
           
static int COMMAND_NOT_IMPLEMENTED_SUPERFLUOUS
           
static int COMMAND_OK
           200 block of reply codes.
static int CONNECTION_CLOSED_TRANSFER_ABORTED
           
static int CONNECTIONS
           
static int DATA_CONNECTION_ALREADY_OPEN_TRANFER_STARTING
           
static int DATA_CONNECTION_OPEN_NO_TRANSFER_IN_PROGRESS
           
static int DIRECTORY_CREATED
           
static int DIRECTORY_STATUS
           
static int ENTERING_PASSIVE_MODE
           
static int FILE_ACTION_OK_AND_COMPLETED
           
static int FILE_STATUS
           
static int FILE_STATUS_OK_ABOUT_TO_OPEN_DATA_CONNECTION
           
static int FILE_SYSTEM
           
static int HELP_MESSAGE
           
static int INFORMATION
           
static int NEED_ACCOUNT
           
static int NEED_ACCOUNT_FOR_LOGIN
           
static int NOT_LOGGED_IN
           
static int PERMANENT_NEGATIVE_COMPLETION
           
static int POSITIVE_COMPLETION
           
static int POSITIVE_INTERMEDIATE
           
static int POSITIVE_PRELIMINARY
           First-digit encoding of reply values.
static int REQUESTED_ACTION_PENDING_MORE_INFO
           
static int RESTART_MARKER_REPLY
           100 block of reply codes.
static int SERVICE_CLOSING_CONTROL_CONNECTION
           
static int SERVICE_NOT_AVAILABLE_CLOSING_CONTROL_CONNECTION
           400 block of reply codes.
static int SERVICE_READY_FOR_NEW_USER
           
static int SERVICE_READY_IN_NNN_MINUTES
           
static int[] standardErrors0
           Collections of oft-used errors for postcondition checks.
static int[] standardErrors1
           
static int[] standardErrors2
           
static int STATUS_OR_HELP_REPLY
           
static int SYNTAX
           Second-digit encoding of reply values.
static int SYNTAX_ERROR_IN_COMMAND
           500 block of reply codes.
static int SYNTAX_ERROR_IN_PARAMETERS
           
static int SYSTEM_TYPE
           
static int TRANSIENT_NEGATIVE_COMPLETION
           
static int UNSPECIFIED
           
static int USER_LOGGED_IN
           
static int USER_NAME_OK
           300 block of reply codes.
 
Constructor Summary
ReplyCodes()
           
 
Method Summary
static java.lang.String convertCode(int code)
           Convert the numeric FTP code specified in the parameter code to a English description, taken from RFC959.
static boolean isStandardError_500_501_502_421_530(int code)
           
static boolean isStandardError_500_501_502_421(int code)
           
static boolean isStandardError_500_501_504_421_530(int code)
           
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

POSITIVE_PRELIMINARY

public static final int POSITIVE_PRELIMINARY

First-digit encoding of reply values. See RFC959 for more information.


POSITIVE_COMPLETION

public static final int POSITIVE_COMPLETION

POSITIVE_INTERMEDIATE

public static final int POSITIVE_INTERMEDIATE

TRANSIENT_NEGATIVE_COMPLETION

public static final int TRANSIENT_NEGATIVE_COMPLETION

PERMANENT_NEGATIVE_COMPLETION

public static final int PERMANENT_NEGATIVE_COMPLETION

SYNTAX

public static final int SYNTAX

Second-digit encoding of reply values. See RFC959 for more information.


INFORMATION

public static final int INFORMATION

CONNECTIONS

public static final int CONNECTIONS

AUTHENTICATION_AND_ACCOUNTING

public static final int AUTHENTICATION_AND_ACCOUNTING

UNSPECIFIED

public static final int UNSPECIFIED

FILE_SYSTEM

public static final int FILE_SYSTEM

RESTART_MARKER_REPLY

public static final int RESTART_MARKER_REPLY

100 block of reply codes. See RFC959 for more information.


SERVICE_READY_IN_NNN_MINUTES

public static final int SERVICE_READY_IN_NNN_MINUTES

DATA_CONNECTION_ALREADY_OPEN_TRANFER_STARTING

public static final int DATA_CONNECTION_ALREADY_OPEN_TRANFER_STARTING

FILE_STATUS_OK_ABOUT_TO_OPEN_DATA_CONNECTION

public static final int FILE_STATUS_OK_ABOUT_TO_OPEN_DATA_CONNECTION

COMMAND_OK

public static final int COMMAND_OK

200 block of reply codes. See RFC959 for more information.


COMMAND_NOT_IMPLEMENTED_SUPERFLUOUS

public static final int COMMAND_NOT_IMPLEMENTED_SUPERFLUOUS

STATUS_OR_HELP_REPLY

public static final int STATUS_OR_HELP_REPLY

DIRECTORY_STATUS

public static final int DIRECTORY_STATUS

FILE_STATUS

public static final int FILE_STATUS

HELP_MESSAGE

public static final int HELP_MESSAGE

SYSTEM_TYPE

public static final int SYSTEM_TYPE

SERVICE_READY_FOR_NEW_USER

public static final int SERVICE_READY_FOR_NEW_USER

SERVICE_CLOSING_CONTROL_CONNECTION

public static final int SERVICE_CLOSING_CONTROL_CONNECTION

DATA_CONNECTION_OPEN_NO_TRANSFER_IN_PROGRESS

public static final int DATA_CONNECTION_OPEN_NO_TRANSFER_IN_PROGRESS

CLOSING_DATA_CONNECTION_AFTER_SUCCESSFUL_ACTION

public static final int CLOSING_DATA_CONNECTION_AFTER_SUCCESSFUL_ACTION

ENTERING_PASSIVE_MODE

public static final int ENTERING_PASSIVE_MODE

USER_LOGGED_IN

public static final int USER_LOGGED_IN

FILE_ACTION_OK_AND_COMPLETED

public static final int FILE_ACTION_OK_AND_COMPLETED

DIRECTORY_CREATED

public static final int DIRECTORY_CREATED

USER_NAME_OK

public static final int USER_NAME_OK

300 block of reply codes. See RFC959 for more information.


NEED_ACCOUNT_FOR_LOGIN

public static final int NEED_ACCOUNT_FOR_LOGIN

REQUESTED_ACTION_PENDING_MORE_INFO

public static final int REQUESTED_ACTION_PENDING_MORE_INFO

SERVICE_NOT_AVAILABLE_CLOSING_CONTROL_CONNECTION

public static final int SERVICE_NOT_AVAILABLE_CLOSING_CONTROL_CONNECTION

400 block of reply codes. See RFC959 for more information.


CANNOT_OPEN_DATA_CONNECTION

public static final int CANNOT_OPEN_DATA_CONNECTION

CONNECTION_CLOSED_TRANSFER_ABORTED

public static final int CONNECTION_CLOSED_TRANSFER_ABORTED

ACTION_NOT_TAKEN_FILE_UNAVAILABLE_FILE_BUSY

public static final int ACTION_NOT_TAKEN_FILE_UNAVAILABLE_FILE_BUSY

ACTION_ABORTED_LOCAL_ERROR

public static final int ACTION_ABORTED_LOCAL_ERROR

ACTION_NOT_TAKEN_INSUFFICIENT_STORAGE_SPACE

public static final int ACTION_NOT_TAKEN_INSUFFICIENT_STORAGE_SPACE

SYNTAX_ERROR_IN_COMMAND

public static final int SYNTAX_ERROR_IN_COMMAND

500 block of reply codes. See RFC959 for more information.


SYNTAX_ERROR_IN_PARAMETERS

public static final int SYNTAX_ERROR_IN_PARAMETERS

COMMAND_NOT_IMPLEMENTED

public static final int COMMAND_NOT_IMPLEMENTED

BAD_SEQUENCE_OF_COMMANDS

public static final int BAD_SEQUENCE_OF_COMMANDS

COMMAND_NOT_IMPLEMENTED_FOR_THAT_PARAMETER

public static final int COMMAND_NOT_IMPLEMENTED_FOR_THAT_PARAMETER

NOT_LOGGED_IN

public static final int NOT_LOGGED_IN

NEED_ACCOUNT

public static final int NEED_ACCOUNT

ACTION_NOT_TAKEN_FILE_UNAVAILABLE

public static final int ACTION_NOT_TAKEN_FILE_UNAVAILABLE

ACTION_ABORTED_PAGE_TYPE_UNKNOWN

public static final int ACTION_ABORTED_PAGE_TYPE_UNKNOWN

ACTION_ABORTED_EXCEEDED_STORAGE_ALLOCATION

public static final int ACTION_ABORTED_EXCEEDED_STORAGE_ALLOCATION

ACTION_NOT_TAKEN_FILE_NAME_NOT_ALLOWED

public static final int ACTION_NOT_TAKEN_FILE_NAME_NOT_ALLOWED

standardErrors0

public static final int[] standardErrors0

Collections of oft-used errors for postcondition checks.


standardErrors1

public static final int[] standardErrors1

standardErrors2

public static final int[] standardErrors2
Constructor Detail

ReplyCodes

public ReplyCodes()
Method Detail

convertCode

public static java.lang.String convertCode(int code)

Convert the numeric FTP code specified in the parameter code to a English description, taken from RFC959.

Parameters:
code - the code to convert.
Returns:
a string conversion of the code.

isStandardError_500_501_502_421

public static boolean isStandardError_500_501_502_421(int code)

isStandardError_500_501_502_421_530

public static boolean isStandardError_500_501_502_421_530(int code)

isStandardError_500_501_504_421_530

public static boolean isStandardError_500_501_504_421_530(int code)

KindFTP
© 1998-2001 Joseph Kiniry
© 2001 KindSoftware
All Rights Reserved