org.apache.ftpserver.remote.interfaces
Interface ConnectionServiceInterface

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
ConnectionService

public interface ConnectionServiceInterface
extends java.rmi.Remote

Ftp user service interface - used by remote admin GUI.

Author:
Rana Bhattacharyya

Method Summary
 void closeAllConnections()
          Close all - close all the connections.
 void closeConnection(java.lang.String sessionId)
          Close ftp connection for this session id.
 java.util.List getAllUsers()
          It returns a list of all the currently connected user objects.
 FtpConnectionObserver getObserver()
          Get the observer.
 FtpUser getUser(java.lang.String sessId)
          Get connected user
 void setObserver(FtpConnectionObserver obsr)
          Set user manager observer.
 void setSpyObject(java.lang.String sessId, SpyConnectionInterface spy)
          Set spy object
 

Method Detail

getAllUsers

public java.util.List getAllUsers()
                           throws java.rmi.RemoteException
It returns a list of all the currently connected user objects.

Throws:
java.rmi.RemoteException

setObserver

public void setObserver(FtpConnectionObserver obsr)
                 throws java.rmi.RemoteException
Set user manager observer.

Throws:
java.rmi.RemoteException

getObserver

public FtpConnectionObserver getObserver()
                                  throws java.rmi.RemoteException
Get the observer.

Throws:
java.rmi.RemoteException

closeConnection

public void closeConnection(java.lang.String sessionId)
                     throws java.rmi.RemoteException
Close ftp connection for this session id.

Throws:
java.rmi.RemoteException

closeAllConnections

public void closeAllConnections()
                         throws java.rmi.RemoteException
Close all - close all the connections.

Throws:
java.rmi.RemoteException

getUser

public FtpUser getUser(java.lang.String sessId)
                throws java.rmi.RemoteException
Get connected user

Throws:
java.rmi.RemoteException

setSpyObject

public void setSpyObject(java.lang.String sessId,
                         SpyConnectionInterface spy)
                  throws java.rmi.RemoteException
Set spy object

Throws:
java.rmi.RemoteException


Copyright © -2005 . All Rights Reserved.