DataTranferFtpReply should extend FileActionFtpReply (FTPSERVER-384)
git-svn-id: https://svn.apache.org/repos/asf/mina/ftpserver/trunk@988427 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/ftplet-api/src/main/java/org/apache/ftpserver/ftplet/DataTransferFtpReply.java b/ftplet-api/src/main/java/org/apache/ftpserver/ftplet/DataTransferFtpReply.java
index de47d2a..d2b062c 100644
--- a/ftplet-api/src/main/java/org/apache/ftpserver/ftplet/DataTransferFtpReply.java
+++ b/ftplet-api/src/main/java/org/apache/ftpserver/ftplet/DataTransferFtpReply.java
@@ -28,18 +28,7 @@
*
*/
-public interface DataTransferFtpReply extends FtpReply {
-
- /**
- * Returns the file that was transferred (uploaded, downloaded or the
- * directory that was listed).
- *
- * @return the file that was transferred (uploaded, downloaded or the
- * directory that was listed). May return <code>null</code>, if
- * the file information is not available because the request was bad
- * or any other reason.
- */
- FtpFile getFile();
+public interface DataTransferFtpReply extends FileActionFtpReply {
/**
* Returns the number of bytes transferred.
diff --git a/ftplet-api/src/main/java/org/apache/ftpserver/ftplet/FileActionFtpReply.java b/ftplet-api/src/main/java/org/apache/ftpserver/ftplet/FileActionFtpReply.java
index 85b6ab4..2eb3895 100644
--- a/ftplet-api/src/main/java/org/apache/ftpserver/ftplet/FileActionFtpReply.java
+++ b/ftplet-api/src/main/java/org/apache/ftpserver/ftplet/FileActionFtpReply.java
@@ -30,7 +30,8 @@
public interface FileActionFtpReply extends FtpReply {
/**
- * Returns the file on which the action was taken.
+ * Returns the file (or directory) on which the action was taken
+ * (e.g. uploaded, created, listed)
*
* @return the file on which the action was taken. May return
* <code>null</code>, if the file information is not available.