org.apache.ftpserver.remote
Class ConnectionService

java.lang.Object
  extended by org.apache.ftpserver.remote.ConnectionService
All Implemented Interfaces:
Remote, ConnectionServiceInterface

public class ConnectionService
extends Object
implements ConnectionServiceInterface

Ftp remote user service adapter class - used by remote admin GUI.

Author:
Rana Bhattacharyya

Constructor Summary
ConnectionService(ConnectionService conService)
          Constructor - sets the actual connection service object
 
Method Summary
 void closeAllConnections()
          Close all - close all the connections.
 void closeConnection(String sessionId)
          Close ftp connection for this session id.
 List getAllUsers()
          It returns a list of all the currently connected users.
 ConnectionService getConnectionService()
          Get the actual object.
 FtpConnectionObserver getObserver()
          Get the observer.
 FtpUser getUser(String sessId)
          Get connected user
 void setObserver(FtpConnectionObserver obsr)
          Set connection observer.
 void setSpyObject(String sessId, SpyConnectionInterface spy)
          Set spy object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionService

public ConnectionService(ConnectionService conService)
                  throws RemoteException
Constructor - sets the actual connection service object

Throws:
RemoteException
Method Detail

getConnectionService

public ConnectionService getConnectionService()
Get the actual object.


getAllUsers

public List getAllUsers()
It returns a list of all the currently connected users.

Specified by:
getAllUsers in interface ConnectionServiceInterface

setObserver

public void setObserver(FtpConnectionObserver obsr)
Set connection observer.

Specified by:
setObserver in interface ConnectionServiceInterface

getObserver

public FtpConnectionObserver getObserver()
Get the observer.

Specified by:
getObserver in interface ConnectionServiceInterface

getUser

public FtpUser getUser(String sessId)
Get connected user

Specified by:
getUser in interface ConnectionServiceInterface

setSpyObject

public void setSpyObject(String sessId,
                         SpyConnectionInterface spy)
Set spy object

Specified by:
setSpyObject in interface ConnectionServiceInterface

closeConnection

public void closeConnection(String sessionId)
Close ftp connection for this session id.

Specified by:
closeConnection in interface ConnectionServiceInterface

closeAllConnections

public void closeAllConnections()
Close all - close all the connections.

Specified by:
closeAllConnections in interface ConnectionServiceInterface


Copyright © 2001-2012 Codehaus. All Rights Reserved.