Class FTPCommand


  • @Deprecated
    public final class FTPCommand
    extends java.lang.Object
    Deprecated.
    use FTPCmd instead
    FTPCommand stores a set of constants for FTP command codes. To interpret the meaning of the codes, familiarity with RFC 959 is assumed. The mnemonic constant names are transcriptions from the code descriptions of RFC 959. For those who think in terms of the actual FTP commands, a set of constants such as USER are provided where the constant name is the same as the FTP command.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ABOR
      Deprecated.
      Command code 21.
      static int ABORT
      Deprecated.
      Alias for 21.
      static int ACCOUNT
      Deprecated.
      Alias for 2.
      static int ACCT
      Deprecated.
      Command code 2.
      static int ALLO
      Deprecated.
      Command code 17.
      static int ALLOCATE
      Deprecated.
      Alias for 17.
      static int APPE
      Deprecated.
      Command code 16.
      static int APPEND
      Deprecated.
      Alias for 16.
      static int CDUP
      Deprecated.
      Command code 4.
      static int CHANGE_TO_PARENT_DIRECTORY
      Deprecated.
      Alias for 4.
      static int CHANGE_WORKING_DIRECTORY
      Deprecated.
      Alias for 3.
      private static java.lang.String[] COMMANDS
      Deprecated.
       
      static int CWD
      Deprecated.
      Command code 3.
      static int DATA_PORT
      Deprecated.
      Alias for 8.
      static int DELE
      Deprecated.
      Command code 22.
      static int DELETE
      Deprecated.
      Alias for 22.
      static int EPRT
      Deprecated.
      Command code 37.
      static int EPSV
      Deprecated.
      Command code 36.
      static int FEAT
      Deprecated.
      Command code 34.
      static int FEATURES
      Deprecated.
      Alias for 34.
      static int FILE_STRUCTURE
      Deprecated.
      Alias for 11.
      static int GET_MOD_TIME
      Deprecated.
      Alias for 33.
      static int HELP
      Deprecated.
      Command code 31.
      private static int LAST
      Deprecated.
       
      static int LIST
      Deprecated.
      Command code 26.
      static int LOGOUT
      Deprecated.
      Alias for 7.
      static int MAKE_DIRECTORY
      Deprecated.
      Alias for 24.
      static int MDTM
      Deprecated.
      Command code 33.
      static int MFMT
      Deprecated.
      Command code 35.
      static int MKD
      Deprecated.
      Command code 24.
      static int MLSD
      Deprecated.
      Machine parseable list for a directory.
      static int MLST
      Deprecated.
      Machine parseable list for a single file.
      static int MOD_TIME
      Deprecated.
      Alias for 33.
      static int MODE
      Deprecated.
      Command code 12.
      static int NAME_LIST
      Deprecated.
      Alias for 27.
      static int NLST
      Deprecated.
      Command code 27.
      static int NOOP
      Deprecated.
      Command code 32.
      static int PASS
      Deprecated.
      Command code 1.
      static int PASSIVE
      Deprecated.
      Alias for 9.
      static int PASSWORD
      Deprecated.
      Alias for 1.
      static int PASV
      Deprecated.
      Command code 9.
      static int PORT
      Deprecated.
      Command code 8.
      static int PRINT_WORKING_DIRECTORY
      Deprecated.
      Alias for 25.
      static int PWD
      Deprecated.
      Command code 25.
      static int QUIT
      Deprecated.
      Command code 7.
      static int REIN
      Deprecated.
      Command code 6.
      static int REINITIALIZE
      Deprecated.
      Alias for 6.
      static int REMOVE_DIRECTORY
      Deprecated.
      Alias for 23.
      static int RENAME_FROM
      Deprecated.
      Alias for 19.
      static int RENAME_TO
      Deprecated.
      Alias for 20.
      static int REPRESENTATION_TYPE
      Deprecated.
      Alias for 10.
      static int REST
      Deprecated.
      Command code 18.
      static int RESTART
      Deprecated.
      Alias for 18.
      static int RETR
      Deprecated.
      Command code 13.
      static int RETRIEVE
      Deprecated.
      Alias for 13.
      static int RMD
      Deprecated.
      Command code 23.
      static int RNFR
      Deprecated.
      Command code 19.
      static int RNTO
      Deprecated.
      Command code 20.
      static int SET_MOD_TIME
      Deprecated.
      Alias for 35.
      static int SITE
      Deprecated.
      Command code 28.
      static int SITE_PARAMETERS
      Deprecated.
      Alias for 28.
      static int SMNT
      Deprecated.
      Command code 5.
      static int STAT
      Deprecated.
      Command code 30.
      static int STATUS
      Deprecated.
      Alias for 30.
      static int STOR
      Deprecated.
      Command code 14.
      static int STORE
      Deprecated.
      Alias for 14.
      static int STORE_UNIQUE
      Deprecated.
      Alias for 15.
      static int STOU
      Deprecated.
      Command code 15.
      static int STRU
      Deprecated.
      Command code 11.
      static int STRUCTURE_MOUNT
      Deprecated.
      Alias for 5.
      static int SYST
      Deprecated.
      Command code 29.
      static int SYSTEM
      Deprecated.
      Alias for 29.
      static int TRANSFER_MODE
      Deprecated.
      Alias for 12.
      static int TYPE
      Deprecated.
      Command code 10.
      static int USER
      Deprecated.
      Command code 0.
      static int USERNAME
      Deprecated.
      Alias for 0.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private FTPCommand()
      Deprecated.
      Cannot be instantiated.
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      (package private) static void checkArray()
      Deprecated.
      Default access needed for Unit test.
      static java.lang.String getCommand​(int command)
      Deprecated.
      Retrieve the FTP protocol command string corresponding to a specified command code.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait