incubator-ftpserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n..@apache.org
Subject svn commit: r496381 - in /incubator/ftpserver/trunk/ftplet-api/src/java/org/apache/ftpserver/ftplet: DefaultFtplet.java FtpResponse.java FtpResponseOutput.java Ftplet.java
Date Mon, 15 Jan 2007 16:09:28 GMT
Author: ngn
Date: Mon Jan 15 08:09:27 2007
New Revision: 496381

URL: http://svn.apache.org/viewvc?view=rev&rev=496381
Log:
Changes to the Ftplet interfaces due to the listernes refactoring

Added:
    incubator/ftpserver/trunk/ftplet-api/src/java/org/apache/ftpserver/ftplet/FtpResponseOutput.java
      - copied, changed from r487956, incubator/ftpserver/trunk/ftplet-api/src/java/org/apache/ftpserver/ftplet/FtpResponse.java
Removed:
    incubator/ftpserver/trunk/ftplet-api/src/java/org/apache/ftpserver/ftplet/FtpResponse.java
Modified:
    incubator/ftpserver/trunk/ftplet-api/src/java/org/apache/ftpserver/ftplet/DefaultFtplet.java
    incubator/ftpserver/trunk/ftplet-api/src/java/org/apache/ftpserver/ftplet/Ftplet.java

Modified: incubator/ftpserver/trunk/ftplet-api/src/java/org/apache/ftpserver/ftplet/DefaultFtplet.java
URL: http://svn.apache.org/viewvc/incubator/ftpserver/trunk/ftplet-api/src/java/org/apache/ftpserver/ftplet/DefaultFtplet.java?view=diff&rev=496381&r1=496380&r2=496381
==============================================================================
--- incubator/ftpserver/trunk/ftplet-api/src/java/org/apache/ftpserver/ftplet/DefaultFtplet.java
(original)
+++ incubator/ftpserver/trunk/ftplet-api/src/java/org/apache/ftpserver/ftplet/DefaultFtplet.java
Mon Jan 15 08:09:27 2007
@@ -34,33 +34,33 @@
     public void init(FtpletContext ftpletContext, Configuration config) throws FtpException
{}
     public void destroy() {}
     
-    public FtpletEnum onConnect(FtpSession session, FtpResponse response) throws FtpException,
IOException {return null;}
-    public FtpletEnum onDisconnect(FtpSession session, FtpResponse response) throws FtpException,
IOException {return null;}
-    public FtpletEnum onLogin(FtpSession session, FtpRequest request, FtpResponse response)
throws FtpException, IOException {return null;}
+    public FtpletEnum onConnect(FtpSession session, FtpResponseOutput response) throws FtpException,
IOException {return null;}
+    public FtpletEnum onDisconnect(FtpSession session, FtpResponseOutput response) throws
FtpException, IOException {return null;}
+    public FtpletEnum onLogin(FtpSession session, FtpRequest request, FtpResponseOutput response)
throws FtpException, IOException {return null;}
     
-    public FtpletEnum onDeleteStart(FtpSession session, FtpRequest request, FtpResponse response)
throws FtpException, IOException {return null;}
-    public FtpletEnum onDeleteEnd(FtpSession session, FtpRequest request, FtpResponse response)
throws FtpException, IOException {return null;}
+    public FtpletEnum onDeleteStart(FtpSession session, FtpRequest request, FtpResponseOutput
response) throws FtpException, IOException {return null;}
+    public FtpletEnum onDeleteEnd(FtpSession session, FtpRequest request, FtpResponseOutput
response) throws FtpException, IOException {return null;}
     
-    public FtpletEnum onUploadStart(FtpSession session, FtpRequest request, FtpResponse response)
throws FtpException, IOException {return null;}
-    public FtpletEnum onUploadEnd(FtpSession session, FtpRequest request, FtpResponse response)
throws FtpException, IOException {return null;}
+    public FtpletEnum onUploadStart(FtpSession session, FtpRequest request, FtpResponseOutput
response) throws FtpException, IOException {return null;}
+    public FtpletEnum onUploadEnd(FtpSession session, FtpRequest request, FtpResponseOutput
response) throws FtpException, IOException {return null;}
     
-    public FtpletEnum onDownloadStart(FtpSession session, FtpRequest request, FtpResponse
response) throws FtpException, IOException {return null;}
-    public FtpletEnum onDownloadEnd(FtpSession session, FtpRequest request, FtpResponse response)
throws FtpException, IOException {return null;}
+    public FtpletEnum onDownloadStart(FtpSession session, FtpRequest request, FtpResponseOutput
response) throws FtpException, IOException {return null;}
+    public FtpletEnum onDownloadEnd(FtpSession session, FtpRequest request, FtpResponseOutput
response) throws FtpException, IOException {return null;}
     
-    public FtpletEnum onRmdirStart(FtpSession session, FtpRequest request, FtpResponse response)
throws FtpException, IOException {return null;}
-    public FtpletEnum onRmdirEnd(FtpSession session, FtpRequest request, FtpResponse response)
throws FtpException, IOException {return null;}
+    public FtpletEnum onRmdirStart(FtpSession session, FtpRequest request, FtpResponseOutput
response) throws FtpException, IOException {return null;}
+    public FtpletEnum onRmdirEnd(FtpSession session, FtpRequest request, FtpResponseOutput
response) throws FtpException, IOException {return null;}
     
-    public FtpletEnum onMkdirStart(FtpSession session, FtpRequest request, FtpResponse response)
throws FtpException, IOException {return null;}
-    public FtpletEnum onMkdirEnd(FtpSession session, FtpRequest request, FtpResponse response)
throws FtpException, IOException {return null;}
+    public FtpletEnum onMkdirStart(FtpSession session, FtpRequest request, FtpResponseOutput
response) throws FtpException, IOException {return null;}
+    public FtpletEnum onMkdirEnd(FtpSession session, FtpRequest request, FtpResponseOutput
response) throws FtpException, IOException {return null;}
         
-    public FtpletEnum onAppendStart(FtpSession session, FtpRequest request, FtpResponse response)
throws FtpException, IOException {return null;}
-    public FtpletEnum onAppendEnd(FtpSession session, FtpRequest request, FtpResponse response)
throws FtpException, IOException {return null;}
+    public FtpletEnum onAppendStart(FtpSession session, FtpRequest request, FtpResponseOutput
response) throws FtpException, IOException {return null;}
+    public FtpletEnum onAppendEnd(FtpSession session, FtpRequest request, FtpResponseOutput
response) throws FtpException, IOException {return null;}
     
-    public FtpletEnum onUploadUniqueStart(FtpSession session, FtpRequest request, FtpResponse
response) throws FtpException, IOException {return null;}
-    public FtpletEnum onUploadUniqueEnd(FtpSession session, FtpRequest request, FtpResponse
response) throws FtpException, IOException {return null;}
+    public FtpletEnum onUploadUniqueStart(FtpSession session, FtpRequest request, FtpResponseOutput
response) throws FtpException, IOException {return null;}
+    public FtpletEnum onUploadUniqueEnd(FtpSession session, FtpRequest request, FtpResponseOutput
response) throws FtpException, IOException {return null;}
     
-    public FtpletEnum onRenameStart(FtpSession session, FtpRequest request, FtpResponse response)
throws FtpException, IOException {return null;}
-    public FtpletEnum onRenameEnd(FtpSession session, FtpRequest request, FtpResponse response)
throws FtpException, IOException {return null;}
+    public FtpletEnum onRenameStart(FtpSession session, FtpRequest request, FtpResponseOutput
response) throws FtpException, IOException {return null;}
+    public FtpletEnum onRenameEnd(FtpSession session, FtpRequest request, FtpResponseOutput
response) throws FtpException, IOException {return null;}
     
-    public FtpletEnum onSite(FtpSession session, FtpRequest request, FtpResponse response)
throws FtpException, IOException {return null;}
+    public FtpletEnum onSite(FtpSession session, FtpRequest request, FtpResponseOutput response)
throws FtpException, IOException {return null;}
 }

Copied: incubator/ftpserver/trunk/ftplet-api/src/java/org/apache/ftpserver/ftplet/FtpResponseOutput.java
(from r487956, incubator/ftpserver/trunk/ftplet-api/src/java/org/apache/ftpserver/ftplet/FtpResponse.java)
URL: http://svn.apache.org/viewvc/incubator/ftpserver/trunk/ftplet-api/src/java/org/apache/ftpserver/ftplet/FtpResponseOutput.java?view=diff&rev=496381&p1=incubator/ftpserver/trunk/ftplet-api/src/java/org/apache/ftpserver/ftplet/FtpResponse.java&r1=487956&p2=incubator/ftpserver/trunk/ftplet-api/src/java/org/apache/ftpserver/ftplet/FtpResponseOutput.java&r2=496381
==============================================================================
--- incubator/ftpserver/trunk/ftplet-api/src/java/org/apache/ftpserver/ftplet/FtpResponse.java
(original)
+++ incubator/ftpserver/trunk/ftplet-api/src/java/org/apache/ftpserver/ftplet/FtpResponseOutput.java
Mon Jan 15 08:09:27 2007
@@ -27,16 +27,10 @@
  * @author <a href="mailto:rana_b@yahoo.com">Rana Bhattacharyya</a>
  */
 public 
-interface FtpResponse {
+interface FtpResponseOutput {
 
     /**
      * Send the ftp server reply code to client.
      */
-    void write(int code) throws IOException;
-    
-    
-    /**
-     * Send the ftp code and message to client
-     */
-    void write(int code, String msg) throws IOException;
+    void write(FtpResponse response) throws IOException;
 }

Modified: incubator/ftpserver/trunk/ftplet-api/src/java/org/apache/ftpserver/ftplet/Ftplet.java
URL: http://svn.apache.org/viewvc/incubator/ftpserver/trunk/ftplet-api/src/java/org/apache/ftpserver/ftplet/Ftplet.java?view=diff&rev=496381&r1=496380&r2=496381
==============================================================================
--- incubator/ftpserver/trunk/ftplet-api/src/java/org/apache/ftpserver/ftplet/Ftplet.java
(original)
+++ incubator/ftpserver/trunk/ftplet-api/src/java/org/apache/ftpserver/ftplet/Ftplet.java
Mon Jan 15 08:09:27 2007
@@ -69,12 +69,12 @@
     /**
      * Client connect notification method.
      */
-    FtpletEnum onConnect(FtpSession session, FtpResponse response) throws FtpException, IOException;
+    FtpletEnum onConnect(FtpSession session, FtpResponseOutput response) throws FtpException,
IOException;
     
     /**
      * Client disconnect notification method. This is the last callback method.
      */
-    FtpletEnum onDisconnect(FtpSession session, FtpResponse response) throws FtpException,
IOException;
+    FtpletEnum onDisconnect(FtpSession session, FtpResponseOutput response) throws FtpException,
IOException;
     
     /**
      * Client successful login notification method. 
@@ -82,90 +82,90 @@
      * {@link FtpSession#getUser()} method will return the user,
      * otherwise it will return null.
      */
-    FtpletEnum onLogin(FtpSession session, FtpRequest request, FtpResponse response) throws
FtpException, IOException;
+    FtpletEnum onLogin(FtpSession session, FtpRequest request, FtpResponseOutput response)
throws FtpException, IOException;
             
     /**
      * File delete request notification method.
      */
-    FtpletEnum onDeleteStart(FtpSession session, FtpRequest request, FtpResponse response)
throws FtpException, IOException;
+    FtpletEnum onDeleteStart(FtpSession session, FtpRequest request, FtpResponseOutput response)
throws FtpException, IOException;
     
     /**
      * File delete success notification method.
      */
-    FtpletEnum onDeleteEnd(FtpSession session, FtpRequest request, FtpResponse response)
throws FtpException, IOException;
+    FtpletEnum onDeleteEnd(FtpSession session, FtpRequest request, FtpResponseOutput response)
throws FtpException, IOException;
     
     /**
      * File upload request notification method.
      */
-    FtpletEnum onUploadStart(FtpSession session, FtpRequest request, FtpResponse response)
throws FtpException, IOException;
+    FtpletEnum onUploadStart(FtpSession session, FtpRequest request, FtpResponseOutput response)
throws FtpException, IOException;
 
     /**
      * File upload success notification method.
      */
-    FtpletEnum onUploadEnd(FtpSession session, FtpRequest request, FtpResponse response)
throws FtpException, IOException;
+    FtpletEnum onUploadEnd(FtpSession session, FtpRequest request, FtpResponseOutput response)
throws FtpException, IOException;
     
     /**
      * File download request notification method.
      */
-    FtpletEnum onDownloadStart(FtpSession session, FtpRequest request, FtpResponse response)
throws FtpException, IOException;
+    FtpletEnum onDownloadStart(FtpSession session, FtpRequest request, FtpResponseOutput
response) throws FtpException, IOException;
     
     /**
      * File download success notification method.
      */
-    FtpletEnum onDownloadEnd(FtpSession session, FtpRequest request, FtpResponse response)
throws FtpException, IOException;
+    FtpletEnum onDownloadEnd(FtpSession session, FtpRequest request, FtpResponseOutput response)
throws FtpException, IOException;
     
     /**
      * Remove directory request notification method.
      */
-    FtpletEnum onRmdirStart(FtpSession session, FtpRequest request, FtpResponse response)
throws FtpException, IOException;
+    FtpletEnum onRmdirStart(FtpSession session, FtpRequest request, FtpResponseOutput response)
throws FtpException, IOException;
     
     /**
      * Directory removal success notification method.
      */
-    FtpletEnum onRmdirEnd(FtpSession session, FtpRequest request, FtpResponse response) throws
FtpException, IOException;
+    FtpletEnum onRmdirEnd(FtpSession session, FtpRequest request, FtpResponseOutput response)
throws FtpException, IOException;
     
     /**
      * Directory creation request notification method.
      */
-    FtpletEnum onMkdirStart(FtpSession session, FtpRequest request, FtpResponse response)
throws FtpException, IOException;
+    FtpletEnum onMkdirStart(FtpSession session, FtpRequest request, FtpResponseOutput response)
throws FtpException, IOException;
     
     /**
      * Directory creation success notification method.
      */
-    FtpletEnum onMkdirEnd(FtpSession session, FtpRequest request, FtpResponse response) throws
FtpException, IOException;
+    FtpletEnum onMkdirEnd(FtpSession session, FtpRequest request, FtpResponseOutput response)
throws FtpException, IOException;
             
     /**
      * File append request notification method.
      */
-    FtpletEnum onAppendStart(FtpSession session, FtpRequest request, FtpResponse response)
throws FtpException, IOException;
+    FtpletEnum onAppendStart(FtpSession session, FtpRequest request, FtpResponseOutput response)
throws FtpException, IOException;
     
     /**
      * File append success notification method.
      */
-    FtpletEnum onAppendEnd(FtpSession session, FtpRequest request, FtpResponse response)
throws FtpException, IOException;
+    FtpletEnum onAppendEnd(FtpSession session, FtpRequest request, FtpResponseOutput response)
throws FtpException, IOException;
     
     /**
      * Unique file create request notification method.
      */
-    FtpletEnum onUploadUniqueStart(FtpSession session, FtpRequest request, FtpResponse response)
throws FtpException, IOException;
+    FtpletEnum onUploadUniqueStart(FtpSession session, FtpRequest request, FtpResponseOutput
response) throws FtpException, IOException;
     
     /**
      * Unique file create success notification method.
      */
-    FtpletEnum onUploadUniqueEnd(FtpSession session, FtpRequest request, FtpResponse response)
throws FtpException, IOException;
+    FtpletEnum onUploadUniqueEnd(FtpSession session, FtpRequest request, FtpResponseOutput
response) throws FtpException, IOException;
     
     /**
      * Rename start notification method.
      */
-    FtpletEnum onRenameStart(FtpSession session, FtpRequest request, FtpResponse response)
throws FtpException, IOException;
+    FtpletEnum onRenameStart(FtpSession session, FtpRequest request, FtpResponseOutput response)
throws FtpException, IOException;
     
     /**
      * Rename end notification method.
      */
-    FtpletEnum onRenameEnd(FtpSession session, FtpRequest request, FtpResponse response)
throws FtpException, IOException;
+    FtpletEnum onRenameEnd(FtpSession session, FtpRequest request, FtpResponseOutput response)
throws FtpException, IOException;
     
     /**
      * SITE command notification method.
      */
-    FtpletEnum onSite(FtpSession session, FtpRequest request, FtpResponse response) throws
FtpException, IOException;
+    FtpletEnum onSite(FtpSession session, FtpRequest request, FtpResponseOutput response)
throws FtpException, IOException;
 }



Mime
View raw message