com.enterprisedt.net.ftp.async
Class DirectoryListCallbackResult

java.lang.Object
  extended by com.enterprisedt.net.ftp.async.AsyncResult
      extended by com.enterprisedt.net.ftp.async.DirectoryListCallbackResult

public class DirectoryListCallbackResult
extends AsyncResult

Holds the result of listing a directory

Version:
$Revision: 1.1 $
Author:
Bruce Blackshaw

Constructor Summary
DirectoryListCallbackResult(java.lang.String directory)
           
 
Method Summary
 void endAsync()
          This method is called to complete the asynchronous operation.
 java.lang.String getRemoteDirectory()
          Get the name of the listed directory
 void setRemoteDirectory(java.lang.String remoteDirectory)
          Set the name of the listed directory
 
Methods inherited from class com.enterprisedt.net.ftp.async.AsyncResult
cancelTask, endAsyncCalled, endAsyncInternal, getClient, getLocalContext, getTag, getTask, getTaskDescription, getTaskId, getThrowable, isCompleted, isSuccessful, notifyComplete, setAsIfCompleted, setClient, setEndAsyncCalled, setLocalContext, setSuccessful, setTag, setTask, setThrowable, waitTillComplete
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryListCallbackResult

public DirectoryListCallbackResult(java.lang.String directory)
Method Detail

endAsync

public void endAsync()
              throws FTPException,
                     java.io.IOException
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:
java.io.IOException
FTPException

getRemoteDirectory

public java.lang.String getRemoteDirectory()
Get the name of the listed directory

Returns:
directory name

setRemoteDirectory

public void setRemoteDirectory(java.lang.String remoteDirectory)
Set the name of the listed directory

Parameters:
remoteDirectory -


Copyright © 2001-2011 Enterprise Distributed Technologies Ltd. All Rights Reserved.