Package com.enterprisedt.net.ftp.async
Class ConnectResult
java.lang.Object
com.enterprisedt.net.ftp.async.AsyncResult
com.enterprisedt.net.ftp.async.ConnectResult
Holds the result of connecting to the server
- Version:
- $Revision$
- Author:
- Bruce Blackshaw
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTask(com.enterprisedt.net.ftp.async.internal.ConnectTask task) voidaddThrowable(Throwable throwable) booleanCancel the asynchronous task that this result is for.voidendAsync()This method is called to complete the asynchronous operation.voidsetCurrentDir(String currentDir) Methods inherited from class com.enterprisedt.net.ftp.async.AsyncResult
endAsyncCalled, endAsyncInternal, getClient, getLocalContext, getTag, getTask, getTaskDescription, getTaskId, getThrowable, isCompleted, isSuccessful, notifyComplete, setAsIfCompleted, setClient, setEndAsyncCalled, setLocalContext, setSuccessful, setTag, setTask, setThrowable, waitTillComplete
-
Constructor Details
-
ConnectResult
public ConnectResult()
-
-
Method Details
-
addTask
public void addTask(com.enterprisedt.net.ftp.async.internal.ConnectTask task) -
getCurrentDir
-
setCurrentDir
-
cancelTask
Cancel the asynchronous task that this result is for.- Overrides:
cancelTaskin classAsyncResult- Returns:
- Throws:
FTPException
-
addThrowable
-
getAllThrowables
-
endAsync
This method is called to complete the asynchronous operation. If the operation is not completed, this method will block until it has. It is normally called from within a callback, which ensures that the operation has indeed already completed.- Throws:
IOExceptionFTPException
-