rana_b 02/03/06 05:49:17
Modified: ftpserver/src/java/org/apache/avalon/ftpserver/interfaces
FtpConnectionObserver.java
FtpStatisticsListener.java
Added: ftpserver/src/java/org/apache/avalon/ftpserver/interfaces
FtpFileListener.java FtpServerInterface.java
SpyConnectionInterface.java
Log:
second stage of refactoring
Revision Changes Path
1.5 +14 -17
jakarta-avalon-apps/ftpserver/src/java/org/apache/avalon/ftpserver/interfaces/FtpConnectionObserver.java
Index: FtpConnectionObserver.java
===================================================================
RCS file:
/home/cvs/jakarta-avalon-apps/ftpserver/src/java/org/apache/avalon/ftpserver/interfaces/FtpConnectionObserver.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- FtpConnectionObserver.java 14 Dec 2001 01:22:04 -0000 1.4
+++ FtpConnectionObserver.java 6 Mar 2002 13:49:17 -0000 1.5
@@ -1,4 +1,3 @@
-
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
@@ -6,36 +5,34 @@
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE file.
*/
-package org.apache.avalon.ftpserver.interfaces;
-
-
-import java.rmi.Remote;
-import java.rmi.RemoteException;
+package org.apache.avalon.ftpserver.interfaces;
+import org.apache.avalon.ftpserver.FtpUser;
/**
* This observer interface monitors all the ftp connections.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Rana Bhattacharyya</a>
*/
-public interface FtpConnectionObserver extends Remote {
-
+public
+interface FtpConnectionObserver {
+
/**
* New connection notification.
- * @param sessId new connection session id.
+ * @param user new connected user.
*/
- void newConnection(String sessId) throws RemoteException;
-
+ void newConnection(final FtpUser user);
+
/**
* Close connection notification
- * @param sessId closed connection session id.
+ * @param user closed user object
*/
- void closeConnection(String sessId) throws RemoteException;
-
+ void removeConnection(final FtpUser user);
+
/**
* Update connection notification
- * @param sessId updated connection session id.
+ * @param user updated user object
*/
- void updateConnection(String sessId) throws RemoteException;
-}
+ void updateConnection(final FtpUser user);
+}
1.6 +17 -20
jakarta-avalon-apps/ftpserver/src/java/org/apache/avalon/ftpserver/interfaces/FtpStatisticsListener.java
Index: FtpStatisticsListener.java
===================================================================
RCS file:
/home/cvs/jakarta-avalon-apps/ftpserver/src/java/org/apache/avalon/ftpserver/interfaces/FtpStatisticsListener.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- FtpStatisticsListener.java 14 Dec 2001 01:22:04 -0000 1.5
+++ FtpStatisticsListener.java 6 Mar 2002 13:49:17 -0000 1.6
@@ -1,4 +1,3 @@
-
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
@@ -6,12 +5,8 @@
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE file.
*/
-package org.apache.avalon.ftpserver.interfaces;
-
-
-import java.rmi.Remote;
-import java.rmi.RemoteException;
+package org.apache.avalon.ftpserver.interfaces;
/**
@@ -19,35 +14,37 @@
*
* @author <a href="mailto:[EMAIL PROTECTED]">Rana Bhattacharyya</a>
*/
-public interface FtpStatisticsListener extends Remote {
-
+public
+interface FtpStatisticsListener {
+
/**
* User file upload notification.
*/
- void notifyUpload() throws RemoteException;
-
+ void notifyUpload();
+
/**
* User file download notification.
*/
- void notifyDownload() throws RemoteException;
-
+ void notifyDownload();
+
/**
* User file delete notification.
*/
- void notifyDelete() throws RemoteException;
-
+ void notifyDelete();
+
/**
* New user login notification.
*/
- void notifyLogin() throws RemoteException;
-
+ void notifyLogin();
+
/**
* User logout notification.
*/
- void notifyLogout() throws RemoteException;
-
+ void notifyLogout();
+
/**
* Connection open/close notification
*/
- void notifyConnection() throws RemoteException;
-}
+ void notifyConnection();
+
+}
1.1
jakarta-avalon-apps/ftpserver/src/java/org/apache/avalon/ftpserver/interfaces/FtpFileListener.java
Index: FtpFileListener.java
===================================================================
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE file.
*/
package org.apache.avalon.ftpserver.interfaces;
import java.io.File;
/**
* Ftp file upload/download/delete listener interface.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Rana Bhattacharyya</a>
*/
public
interface FtpFileListener {
/**
* User file upload notification.
*/
void notifyUpload(final File file, final String sessionId);
/**
* User file download notification.
*/
void notifyDownload(final File file, final String sessionId);
/**
* User file delete notification.
*/
void notifyDelete(final File file, final String sessionId);
}
1.7 +2 -24
jakarta-avalon-apps/ftpserver/src/java/org/apache/avalon/ftpserver/interfaces/FtpServerInterface.java
1.1
jakarta-avalon-apps/ftpserver/src/java/org/apache/avalon/ftpserver/interfaces/SpyConnectionInterface.java
Index: SpyConnectionInterface.java
===================================================================
/*
* Copyright (C) The Apache Software Foundation. All rights reserved.
*
* This software is published under the terms of the Apache Software License
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE file.
*/
package org.apache.avalon.ftpserver.interfaces;
import java.io.IOException;
/**
* This interface is used to monitor user activities;
*/
public
interface SpyConnectionInterface {
/**
* Write user spy message.
*/
void write(String msg) throws IOException;
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>