|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ftpserver.ConnectionService
public class ConnectionService
Ftp connection service class. It tracks all ftp connections.
Constructor Summary | |
---|---|
ConnectionService(FtpConfig cfg)
Constructor. |
Method Summary | |
---|---|
void |
closeAllConnections()
Close all - close all the connections. |
void |
closeConnection(String sessId)
Close ftp connection for this session id. |
void |
dispose()
Dispose connection service. |
List |
getAllUsers()
It returns a list of all the currently connected users. |
BaseFtpConnection |
getConnection(String sessId)
Get connection object |
FtpConnectionObserver |
getObserver()
Get the observer. |
boolean |
login(FtpUser thisUser)
User login method. |
void |
newConnection(BaseFtpConnection newCon)
New connection has been established - not yet logged-in. |
void |
resetAllSpyObjects()
Reset all spy objects |
void |
setObserver(FtpConnectionObserver obsr)
Set user manager observer. |
void |
setSpyObject(String sessId,
SpyConnectionInterface spy)
Set connection spy object |
void |
timerTask()
Timer thread will call this method periodically to close inactice connections and load user information. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConnectionService(FtpConfig cfg) throws Exception
Exception
Method Detail |
---|
public List getAllUsers()
public void setObserver(FtpConnectionObserver obsr)
public FtpConnectionObserver getObserver()
public boolean login(FtpUser thisUser)
public void closeConnection(String sessId)
public void closeAllConnections()
public void newConnection(BaseFtpConnection newCon)
public void setSpyObject(String sessId, SpyConnectionInterface spy)
public BaseFtpConnection getConnection(String sessId)
public void resetAllSpyObjects()
public void timerTask()
public void dispose()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |