rana_b 02/03/31 08:40:32
Modified: ftpserver/src/java/org/apache/avalon/ftpserver
ConnectionService.java
Log:
Moving towards ftplet
Revision Changes Path
1.4 +11 -11
jakarta-avalon-apps/ftpserver/src/java/org/apache/avalon/ftpserver/ConnectionService.java
Index: ConnectionService.java
===================================================================
RCS file:
/home/cvs/jakarta-avalon-apps/ftpserver/src/java/org/apache/avalon/ftpserver/ConnectionService.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ConnectionService.java 10 Mar 2002 06:06:38 -0000 1.3
+++ ConnectionService.java 31 Mar 2002 16:40:32 -0000 1.4
@@ -22,7 +22,7 @@
import org.apache.avalon.ftpserver.usermanager.UserManagerInterface;
/**
- * Ftp user service class. It tracks all ftp connections.
+ * Ftp connection service class. It tracks all ftp connections.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Rana Bhattacharyya</a>
*/
@@ -99,7 +99,7 @@
List userList = new ArrayList();
synchronized(mConList) {
for(Iterator conIt=mConList.iterator(); conIt.hasNext(); ) {
- FtpConnection conObj = (FtpConnection)conIt.next();
+ BaseFtpConnection conObj = (BaseFtpConnection)conIt.next();
if (conObj != null) {
userList.add(conObj.getUser());
}
@@ -115,7 +115,7 @@
mObserver = obsr;
synchronized(mConList) {
for(Iterator conIt=mConList.iterator(); conIt.hasNext(); ) {
- FtpConnection conObj = (FtpConnection)conIt.next();
+ BaseFtpConnection conObj = (BaseFtpConnection)conIt.next();
if (conObj != null) {
conObj.setObserver(mObserver);
}
@@ -183,7 +183,7 @@
* Close ftp connection for this session id.
*/
public void closeConnection(final String sessId) {
- FtpConnection con = null;
+ BaseFtpConnection con = null;
synchronized(mConList) {
con = getConnection(sessId);
if (con != null) {
@@ -281,7 +281,7 @@
/**
* New connection has been established - not yet logged-in.
*/
- public void newConnection(final FtpConnection newCon) {
+ public void newConnection(final BaseFtpConnection newCon) {
// null user - ignore
if (newCon == null) {
@@ -316,7 +316,7 @@
* Set connection spy object
*/
public void setSpyObject(String sessId, SpyConnectionInterface spy) {
- FtpConnection con = getConnection(sessId);
+ BaseFtpConnection con = getConnection(sessId);
if (con != null) {
con.setSpyObject(spy);
}
@@ -325,11 +325,11 @@
/**
* Get connection object
*/
- public FtpConnection getConnection(String sessId) {
- FtpConnection con = null;
+ public BaseFtpConnection getConnection(String sessId) {
+ BaseFtpConnection con = null;
synchronized(mConList) {
for(Iterator conIt=mConList.iterator(); conIt.hasNext(); ) {
- FtpConnection conObj = (FtpConnection)conIt.next();
+ BaseFtpConnection conObj = (BaseFtpConnection)conIt.next();
if (conObj != null) {
if ( conObj.getUser().getSessionId().equals(sessId) ) {
con = conObj;
@@ -347,7 +347,7 @@
public void resetAllSpyObjects() {
synchronized(mConList) {
for(Iterator conIt=mConList.iterator(); conIt.hasNext(); ) {
- FtpConnection conObj = (FtpConnection)conIt.next();
+ BaseFtpConnection conObj = (BaseFtpConnection)conIt.next();
if (conObj != null) {
conObj.setSpyObject(null);
}
@@ -366,7 +366,7 @@
long currTime = System.currentTimeMillis();
synchronized(mConList) {
for( Iterator conIt=mConList.iterator(); conIt.hasNext(); ) {
- FtpConnection con = (FtpConnection)conIt.next();
+ BaseFtpConnection con = (BaseFtpConnection)conIt.next();
if (con != null) {
FtpUser user = con.getUser();
if (!user.isActive(currTime)) {
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>