public class LocalizedDataTransferFtpReply extends LocalizedFtpReply implements DataTransferFtpReply
DataTransferReply
.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 |
---|
LocalizedDataTransferFtpReply(int code,
String message,
FtpFile file,
long bytesTransferred)
Creates a new instance of
LocalizedFileTransferReply . |
Modifier and Type | Method and Description |
---|---|
long |
getBytesTransferred()
Returns the number of bytes transferred.
|
FtpFile |
getFile()
Returns the file (or directory) on which the action was taken
(e.g.
|
static LocalizedDataTransferFtpReply |
translate(FtpIoSession session,
FtpRequest request,
FtpServerContext context,
int code,
String subId,
String basicMsg,
FtpFile file)
Returns the localized reply that contains all details about the data
transfer.
|
static LocalizedDataTransferFtpReply |
translate(FtpIoSession session,
FtpRequest request,
FtpServerContext context,
int code,
String subId,
String basicMsg,
FtpFile file,
long bytesTransferred)
Returns the localized reply that contains all details about the data
transfer.
|
translate
getCode, getMessage, getSentTime, isPositive, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCode, getMessage, getSentTime, isPositive, toString
public LocalizedDataTransferFtpReply(int code, String message, FtpFile file, long bytesTransferred)
LocalizedFileTransferReply
.code
- the reply codemessage
- the detailed messagefile
- the file or directory the data transfer is related tobytesTransferred
- the number of bytes transferredpublic FtpFile getFile()
FileActionFtpReply
getFile
in interface FileActionFtpReply
null
, if the file information is not available.public long getBytesTransferred()
DataTransferFtpReply
getBytesTransferred
in interface DataTransferFtpReply
public static LocalizedDataTransferFtpReply translate(FtpIoSession session, FtpRequest request, FtpServerContext context, int code, String subId, String basicMsg, FtpFile file)
session
- the FTP sessionrequest
- the FTP requestcontext
- the FTP server contextcode
- the reply codesubId
- the sub message IDbasicMsg
- the basic messagefile
- the file or directory that was transferredpublic static LocalizedDataTransferFtpReply translate(FtpIoSession session, FtpRequest request, FtpServerContext context, int code, String subId, String basicMsg, FtpFile file, long bytesTransferred)
session
- the FTP sessionrequest
- the FTP requestcontext
- the FTP server contextcode
- the reply codesubId
- the sub message IDbasicMsg
- the basic messagefile
- the file or directory that was transferredbytesTransferred
- total number of bytes transferredCopyright © 2003–2024 The Apache Software Foundation. All rights reserved.