|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use FtpRequest | |
org.apache.ftpserver |
Uses of FtpRequest in org.apache.ftpserver |
Methods in org.apache.ftpserver with parameters of type FtpRequest | |
protected boolean |
FtpConnection.hasPermission(FtpRequest request)
Check the user permission to execute this command. |
void |
FtpConnection.doABOR(FtpRequest request,
FtpWriter out)
ABOR <CRLF> This command tells the server to abort the previous FTP service command and any associated transfer of data. |
void |
FtpConnection.doAPPE(FtpRequest request,
FtpWriter out)
APPE <SP> <pathname> <CRLF> This command causes the server-DTP to accept the data transferred via the data connection and to store the data in a file at the server site. |
void |
FtpConnection.doCDUP(FtpRequest request,
FtpWriter out)
CDUP <CRLF> This command is a special case of CWD, and is included to simplify the implementation of programs for transferring directory trees between operating systems having different syntaxes for naming the parent directory. |
void |
FtpConnection.doCWD(FtpRequest request,
FtpWriter out)
CWD <SP> <pathname> <CRLF> This command allows the user to work with a different directory for file storage or retrieval without altering his login or accounting information. |
void |
FtpConnection.doDELE(FtpRequest request,
FtpWriter out)
DELE <SP> <pathname> <CRLF> This command causes the file specified in the pathname to be deleted at the server site. |
void |
FtpConnection.doHELP(FtpRequest request,
FtpWriter out)
HELP [<SP> This command shall cause the server to send helpful information regarding its implementation status over the control connection to the user. |
void |
FtpConnection.doLIST(FtpRequest request,
FtpWriter out)
LIST [<SP> <pathname>] <CRLF> This command causes a list to be sent from the server to the passive DTP. |
void |
FtpConnection.doMDTM(FtpRequest request,
FtpWriter out)
MDTM <SP> <pathname> <CRLF> Returns the date and time of when a file was modified. |
void |
FtpConnection.doMKD(FtpRequest request,
FtpWriter out)
MKD <SP> <pathname> <CRLF> This command causes the directory specified in the pathname to be created as a directory (if the pathname is absolute) or as a subdirectory of the current working directory (if the pathname is relative). |
void |
FtpConnection.doMODE(FtpRequest request,
FtpWriter out)
MODE <SP> The argument is a single Telnet character code specifying the data transfer modes described in the Section on Transmission Modes. |
void |
FtpConnection.doNLST(FtpRequest request,
FtpWriter out)
NLST [<SP> <pathname>] <CRLF> This command causes a directory listing to be sent from server to user site. |
void |
FtpConnection.doNOOP(FtpRequest request,
FtpWriter out)
NOOP <CRLF> This command does not affect any parameters or previously entered commands. |
void |
FtpConnection.doPASS(FtpRequest request,
FtpWriter out)
PASS <SP> The argument field is a Telnet string specifying the user's password. |
void |
FtpConnection.doPASV(FtpRequest request,
FtpWriter out)
PASV <CRLF> This command requests the server-DTP to "listen" on a data port (which is not its default data port) and to wait for a connection rather than initiate one upon receipt of a transfer command. |
void |
FtpConnection.doPORT(FtpRequest request,
FtpWriter out)
PORT <SP> The argument is a HOST-PORT specification for the data port to be used in data connection. |
void |
FtpConnection.doPWD(FtpRequest request,
FtpWriter out)
PWD <CRLF> This command causes the name of the current working directory to be returned in the reply. |
void |
FtpConnection.doQUIT(FtpRequest request,
FtpWriter out)
QUIT <CRLF> This command terminates a USER and if file transfer is not in progress, the server closes the control connection. |
void |
FtpConnection.doREST(FtpRequest request,
FtpWriter out)
REST <SP> The argument field represents the server marker at which file transfer is to be restarted. |
void |
FtpConnection.doRETR(FtpRequest request,
FtpWriter out)
RETR <SP> <pathname> <CRLF> This command causes the server-DTP to transfer a copy of the file, specified in the pathname, to the server- or user-DTP at the other end of the data connection. |
void |
FtpConnection.doRMD(FtpRequest request,
FtpWriter out)
RMD <SP> <pathname> <CRLF> This command causes the directory specified in the pathname to be removed as a directory (if the pathname is absolute) or as a subdirectory of the current working directory (if the pathname is relative). |
void |
FtpConnection.doRNFR(FtpRequest request,
FtpWriter out)
RNFR <SP> <pathname> <CRLF> This command specifies the old pathname of the file which is to be renamed. |
void |
FtpConnection.doRNTO(FtpRequest request,
FtpWriter out)
RNTO <SP> <pathname> <CRLF> This command specifies the new pathname of the file specified in the immediately preceding "rename from" command. |
void |
FtpConnection.doSITE(FtpRequest request,
FtpWriter out)
SITE <SP> This command is used by the server to provide services specific to his system that are essential to file transfer but not sufficiently universal to be included as commands in the protocol. |
void |
FtpConnection.doSIZE(FtpRequest request,
FtpWriter out)
SIZE <SP> <pathname> <CRLF> Returns the size of the file in bytes. |
void |
FtpConnection.doSTAT(FtpRequest request,
FtpWriter out)
STAT [<SP> <pathname>] <CRLF> This command shall cause a status response to be sent over the control connection in the form of a reply. |
void |
FtpConnection.doSTOR(FtpRequest request,
FtpWriter out)
STOR <SP> <pathname> <CRLF> This command causes the server-DTP to accept the data transferred via the data connection and to store the data as a file at the server site. |
void |
FtpConnection.doSTOU(FtpRequest request,
FtpWriter out)
STOU <CRLF> This command behaves like STOR except that the resultant file is to be created in the current directory under a name unique to that directory. |
void |
FtpConnection.doSTRU(FtpRequest request,
FtpWriter out)
STRU <SP> <structure-code> <CRLF> The argument is a single Telnet character code specifying file structure. |
void |
FtpConnection.doSYST(FtpRequest request,
FtpWriter out)
SYST <CRLF> This command is used to find out the type of operating system at the server. |
void |
FtpConnection.doTYPE(FtpRequest request,
FtpWriter out)
TYPE <SP> <type-code> <CRLF> The argument specifies the representation type. |
void |
FtpConnection.doUSER(FtpRequest request,
FtpWriter out)
USER <SP> <username> <CRLF> The argument field is a Telnet string identifying the user. |
java.lang.String |
SiteCommandHandler.getResponse(FtpRequest request)
Handle site. |
java.lang.String |
SiteCommandHandler.doADDIP(java.lang.String[] args,
FtpRequest cmd)
Add banned IP |
java.lang.String |
SiteCommandHandler.doADDUSER(java.lang.String[] args,
FtpRequest cmd)
Add user |
java.lang.String |
SiteCommandHandler.doDELIP(java.lang.String[] args,
FtpRequest cmd)
Add banned IP |
java.lang.String |
SiteCommandHandler.doDELUSER(java.lang.String[] args,
FtpRequest cmd)
Delete user from repository. |
java.lang.String |
SiteCommandHandler.doDESCUSER(java.lang.String[] args,
FtpRequest cmd)
Describe user. |
java.lang.String |
SiteCommandHandler.doHELP(java.lang.String[] args,
FtpRequest cmd)
Display site help. |
java.lang.String |
SiteCommandHandler.doKICK(java.lang.String[] args,
FtpRequest cmd)
Disconnect ftp connections |
java.lang.String |
SiteCommandHandler.doLISTIP(java.lang.String[] args,
FtpRequest cmd)
List all banned IPs. |
java.lang.String |
SiteCommandHandler.doLISTUSER(java.lang.String[] args,
FtpRequest cmd)
List all the users. |
java.lang.String |
SiteCommandHandler.doSETATTR(java.lang.String[] args,
FtpRequest cmd)
Delete user from repository. |
java.lang.String |
SiteCommandHandler.doSTAT(java.lang.String[] args,
FtpRequest cmd)
Delete user from repository. |
java.lang.String |
SiteCommandHandler.doWHO(java.lang.String[] args,
FtpRequest cmd)
Display all connected users. |
java.lang.String |
FtpStatus.getResponse(int status,
FtpRequest cmd,
FtpUser user,
java.lang.String[] args)
Get ftp response. |
void |
BaseFtpConnection.service(FtpRequest request,
FtpWriter writer)
Execute the ftp command. |
protected boolean |
BaseFtpConnection.hasPermission(FtpRequest request)
Check permission - default implementation - does nothing. |
|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |