FTP-Server API

server
Interface SurvailanceController

All Known Implementing Classes:
SetupIntelligence

public interface SurvailanceController


Method Summary
 boolean disconnectSession(String command, UserSession userSession)
          Should find out if the command results in a disconnection of the client.
 boolean letSessionContinue(String command, UserSession userSession)
          Should validate the clients commands and return true if the command lets the client continue his session.
 

Method Detail

letSessionContinue

public boolean letSessionContinue(String command,
                                  UserSession userSession)
Should validate the clients commands and return true if the command lets the client continue his session. If this method returns true one time within the 'Survailance.secondsToTimeout', the client will NOT be kicked off the server. If the the method does not return true one or more times within the 'Survailance.secondsToTimeout', the client is automatically kicked!

Parameters:
command - the command the client sends to the server
userSession - the client that sended the command
Returns:
true if the client may continue his session.

disconnectSession

public boolean disconnectSession(String command,
                                 UserSession userSession)
Should find out if the command results in a disconnection of the client. If true is returned, the client is disconnected at once.

Parameters:
command - the command the client sends to the server
userSession - the client that sended the command
Returns:
true if the client should be disconnected.

FTP-Server API