org.apache.ftpserver.remote
Class RemoteHandler

java.lang.Object
  extended byorg.apache.ftpserver.remote.RemoteHandler
All Implemented Interfaces:
java.rmi.Remote, RemoteHandlerInterface, java.rmi.server.Unreferenced

public class RemoteHandler
extends java.lang.Object
implements RemoteHandlerInterface, java.rmi.server.Unreferenced

Ftp server remote admin adapter. This is the starting point of remote admin.

Author:
Rana Bhattacharyya

Field Summary
 
Fields inherited from interface org.apache.ftpserver.remote.interfaces.RemoteHandlerInterface
BIND_NAME, DISPLAY_NAME
 
Constructor Summary
RemoteHandler(FtpConfig config)
          Constructor - set the actual user config object
 
Method Summary
 void dispose()
          Close the remote handler
 FtpConfigInterface getConfigInterface(java.lang.String sessId)
          Get configuration interface
 java.lang.String login(java.lang.String id, java.lang.String password)
          Remote admin login
 boolean logout(java.lang.String sessId)
          Remote admin logout
 void unreferenced()
          Unreferenced - admin user idle timeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteHandler

public RemoteHandler(FtpConfig config)
              throws java.rmi.RemoteException
Constructor - set the actual user config object

Method Detail

login

public java.lang.String login(java.lang.String id,
                              java.lang.String password)
                       throws java.lang.Exception
Remote admin login

Specified by:
login in interface RemoteHandlerInterface
Throws:
java.lang.Exception

logout

public boolean logout(java.lang.String sessId)
Remote admin logout

Specified by:
logout in interface RemoteHandlerInterface

getConfigInterface

public FtpConfigInterface getConfigInterface(java.lang.String sessId)
Get configuration interface

Specified by:
getConfigInterface in interface RemoteHandlerInterface

dispose

public void dispose()
Close the remote handler


unreferenced

public void unreferenced()
Unreferenced - admin user idle timeout

Specified by:
unreferenced in interface java.rmi.server.Unreferenced


Copyright © -2005 . All Rights Reserved.