org.apache.ftpserver.remote
Class RemoteHandler

java.lang.Object
  extended by org.apache.ftpserver.remote.RemoteHandler
All Implemented Interfaces:
Remote, Unreferenced, RemoteHandlerInterface

public class RemoteHandler
extends Object
implements RemoteHandlerInterface, 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(String sessId)
          Get configuration interface
 String login(String id, String password)
          Remote admin login
 boolean logout(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 RemoteException
Constructor - set the actual user config object

Throws:
RemoteException
Method Detail

login

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

Specified by:
login in interface RemoteHandlerInterface
Throws:
Exception

logout

public boolean logout(String sessId)
Remote admin logout

Specified by:
logout in interface RemoteHandlerInterface

getConfigInterface

public FtpConfigInterface getConfigInterface(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 Unreferenced


Copyright © 2001-2012 Codehaus. All Rights Reserved.