⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
org.apache.commons.net.ftp

Class FTPCommand

java.lang.Object
|
+--org.apache.commons.net.ftp.FTPCommand


public final class FTPCommand
extends java.lang.Object

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.

Author:
Daniel F. Savarese

Field Summary

static int

ABOR

static int

ABORT

static int

ACCOUNT

static int

ACCT

static int

ALLO

static int

ALLOCATE

static int

APPE

static int

APPEND

static int

CDUP

static int

CHANGE_TO_PARENT_DIRECTORY

static int

CHANGE_WORKING_DIRECTORY

static int

CWD

static int

DATA_PORT

static int

DELE

static int

DELETE

static int

FILE_STRUCTURE

static int

HELP

static int

LIST

static int

LOGOUT

static int

MAKE_DIRECTORY

static int

MKD

static int

MODE

static int

NAME_LIST

static int

NLST

static int

NOOP

static int

PASS

static int

PASSIVE

static int

PASSWORD

static int

PASV

static int

PORT

static int

PRINT_WORKING_DIRECTORY

static int

PWD

static int

QUIT

static int

REIN

static int

REINITIALIZE

static int

REMOVE_DIRECTORY

static int

RENAME_FROM

static int

RENAME_TO

static int

REPRESENTATION_TYPE

static int

REST

static int

RESTART

static int

RETR

static int

RETRIEVE

static int

RMD

static int

RNFR

static int

RNTO

static int

SITE

static int

SITE_PARAMETERS

static int

SMNT

static int

STAT

static int

STATUS

static int

STOR

static int

STORE

static int

STORE_UNIQUE

static int

STOU

static int

STRU

static int

STRUCTURE_MOUNT

static int

SYST

static int

SYSTEM

static int

TRANSFER_MODE

static int

TYPE

static int

USER

FTPCommand stores a set of constants for FTP command codes.

static int

USERNAME

Method Summary

static String

getCommand(int command)

Retrieve the FTP protocol command string corresponding to a specified command code.

Field Details

ABOR

public static final int ABOR


ABORT

public static final int ABORT


ACCOUNT

public static final int ACCOUNT


ACCT

public static final int ACCT


ALLO

public static final int ALLO


ALLOCATE

public static final int ALLOCATE


APPE

public static final int APPE


APPEND

public static final int APPEND


CDUP

public static final int CDUP


CHANGE_TO_PARENT_DIRECTORY

public static final int CHANGE_TO_PARENT_DIRECTORY


CHANGE_WORKING_DIRECTORY

public static final int CHANGE_WORKING_DIRECTORY


CWD

public static final int CWD


DATA_PORT

public static final int DATA_PORT


DELE

public static final int DELE


DELETE

public static final int DELETE


FILE_STRUCTURE

public static final int FILE_STRUCTURE


HELP

public static final int HELP


LIST

public static final int LIST


LOGOUT

public static final int LOGOUT


MAKE_DIRECTORY

public static final int MAKE_DIRECTORY


MKD

public static final int MKD


MODE

public static final int MODE


NAME_LIST

public static final int NAME_LIST


NLST

public static final int NLST


NOOP

public static final int NOOP


PASS

public static final int PASS


PASSIVE

public static final int PASSIVE


PASSWORD

public static final int PASSWORD


PASV

public static final int PASV


PORT

public static final int PORT


PRINT_WORKING_DIRECTORY

public static final int PRINT_WORKING_DIRECTORY


PWD

public static final int PWD


QUIT

public static final int QUIT


REIN

public static final int REIN


REINITIALIZE

public static final int REINITIALIZE


REMOVE_DIRECTORY

public static final int REMOVE_DIRECTORY


RENAME_FROM

public static final int RENAME_FROM


RENAME_TO

public static final int RENAME_TO


REPRESENTATION_TYPE

public static final int REPRESENTATION_TYPE


REST

public static final int REST


RESTART

public static final int RESTART


RETR

public static final int RETR


RETRIEVE

public static final int RETRIEVE


RMD

public static final int RMD


RNFR

public static final int RNFR


RNTO

public static final int RNTO


SITE

public static final int SITE


SITE_PARAMETERS

public static final int SITE_PARAMETERS


SMNT

public static final int SMNT


STAT

public static final int STAT


STATUS

public static final int STATUS


STOR

public static final int STOR


STORE

public static final int STORE


STORE_UNIQUE

public static final int STORE_UNIQUE


STOU

public static final int STOU


STRU

public static final int STRU


STRUCTURE_MOUNT

public static final int STRUCTURE_MOUNT


SYST

public static final int SYST


SYSTEM

public static final int SYSTEM


TRANSFER_MODE

public static final int TRANSFER_MODE


TYPE

public static final int TYPE


USER

public static final int USER

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.

Author:
Daniel F. Savarese

USERNAME

public static final int USERNAME

Method Details

getCommand

public static final String getCommand(int command)

Retrieve the FTP protocol command string corresponding to a specified command code.

Parameters:
command - The command code.
Returns:
The FTP protcol command string corresponding to a specified command code.