public class LocalizedRenameFtpReply extends LocalizedFtpReply implements org.apache.ftpserver.ftplet.RenameFtpReply
RenameFtpReply that is sent when a file
or directory is renamed.REPLY_110_RESTART_MARKER_REPLY, REPLY_120_SERVICE_READY_IN_NNN_MINUTES, REPLY_125_DATA_CONNECTION_ALREADY_OPEN, REPLY_150_FILE_STATUS_OKAY, REPLY_200_COMMAND_OKAY, REPLY_202_COMMAND_NOT_IMPLEMENTED, REPLY_211_SYSTEM_STATUS_REPLY, REPLY_212_DIRECTORY_STATUS, REPLY_213_FILE_STATUS, REPLY_214_HELP_MESSAGE, REPLY_215_NAME_SYSTEM_TYPE, REPLY_220_SERVICE_READY, REPLY_221_CLOSING_CONTROL_CONNECTION, REPLY_225_DATA_CONNECTION_OPEN_NO_TRANSFER_IN_PROGRESS, REPLY_226_CLOSING_DATA_CONNECTION, REPLY_227_ENTERING_PASSIVE_MODE, REPLY_230_USER_LOGGED_IN, REPLY_250_REQUESTED_FILE_ACTION_OKAY, REPLY_257_PATHNAME_CREATED, REPLY_331_USER_NAME_OKAY_NEED_PASSWORD, REPLY_332_NEED_ACCOUNT_FOR_LOGIN, REPLY_350_REQUESTED_FILE_ACTION_PENDING_FURTHER_INFORMATION, REPLY_421_SERVICE_NOT_AVAILABLE_CLOSING_CONTROL_CONNECTION, REPLY_425_CANT_OPEN_DATA_CONNECTION, REPLY_426_CONNECTION_CLOSED_TRANSFER_ABORTED, REPLY_450_REQUESTED_FILE_ACTION_NOT_TAKEN, REPLY_451_REQUESTED_ACTION_ABORTED, REPLY_452_REQUESTED_ACTION_NOT_TAKEN, REPLY_500_SYNTAX_ERROR_COMMAND_UNRECOGNIZED, REPLY_501_SYNTAX_ERROR_IN_PARAMETERS_OR_ARGUMENTS, REPLY_502_COMMAND_NOT_IMPLEMENTED, REPLY_503_BAD_SEQUENCE_OF_COMMANDS, REPLY_504_COMMAND_NOT_IMPLEMENTED_FOR_THAT_PARAMETER, REPLY_530_NOT_LOGGED_IN, REPLY_532_NEED_ACCOUNT_FOR_STORING_FILES, REPLY_550_REQUESTED_ACTION_NOT_TAKEN, REPLY_551_REQUESTED_ACTION_ABORTED_PAGE_TYPE_UNKNOWN, REPLY_552_REQUESTED_FILE_ACTION_ABORTED_EXCEEDED_STORAGE, REPLY_553_REQUESTED_ACTION_NOT_TAKEN_FILE_NAME_NOT_ALLOWED| Constructor and Description |
|---|
LocalizedRenameFtpReply(int code,
String message,
org.apache.ftpserver.ftplet.FtpFile from,
org.apache.ftpserver.ftplet.FtpFile to)
Creates a new instance of
LocalizedRenameFtpReply. |
| Modifier and Type | Method and Description |
|---|---|
org.apache.ftpserver.ftplet.FtpFile |
getFrom() |
org.apache.ftpserver.ftplet.FtpFile |
getTo() |
static LocalizedRenameFtpReply |
translate(FtpIoSession session,
org.apache.ftpserver.ftplet.FtpRequest request,
FtpServerContext context,
int code,
String subId,
String basicMsg,
org.apache.ftpserver.ftplet.FtpFile from,
org.apache.ftpserver.ftplet.FtpFile to)
Returns the localized reply that contains all details about the rename
operation.
|
translategetCode, getMessage, getSentTime, isPositive, toStringpublic LocalizedRenameFtpReply(int code,
String message,
org.apache.ftpserver.ftplet.FtpFile from,
org.apache.ftpserver.ftplet.FtpFile to)
LocalizedRenameFtpReply.code - the reply codemessage - the detailed messagefrom - the old fileto - the new filepublic org.apache.ftpserver.ftplet.FtpFile getFrom()
getFrom in interface org.apache.ftpserver.ftplet.RenameFtpReplypublic org.apache.ftpserver.ftplet.FtpFile getTo()
getTo in interface org.apache.ftpserver.ftplet.RenameFtpReplypublic static LocalizedRenameFtpReply translate(FtpIoSession session, org.apache.ftpserver.ftplet.FtpRequest request, FtpServerContext context, int code, String subId, String basicMsg, org.apache.ftpserver.ftplet.FtpFile from, org.apache.ftpserver.ftplet.FtpFile to)
session - the FTP sessionrequest - the FTP requestcontext - the FTP server contextcode - the reply codesubId - the sub message IDbasicMsg - the basic messagefrom - the file or directory as it was before the renameto - the file or directory after the renameCopyright © 2003–2017 The Apache Software Foundation. All rights reserved.