com.enterprisedt.net.ftp.async
Class ChangeDirectoryResult

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

public class ChangeDirectoryResult
extends AsyncResult

Holds the result of changing the remote directory.

Version:
$Revision: 1.5 $
Author:
Bruce Blackshaw

Constructor Summary
ChangeDirectoryResult(java.lang.String name)
           
 
Method Summary
 void endAsync()
          This method is called to complete the asynchronous operation.
 java.lang.String getDirectory()
          Get the name of the directory that was requested.
 java.lang.String getRemoteDirectory()
          Get current working directory on the server after the change in directory.
 void setRemoteDirectory(java.lang.String remoteDirectory)
          Set the current working directory on the server
 
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

ChangeDirectoryResult

public ChangeDirectoryResult(java.lang.String name)
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

getDirectory

public java.lang.String getDirectory()
Get the name of the directory that was requested. Note that this may not be the entire current directory, but the last part of it.

Returns:
directory name

getRemoteDirectory

public java.lang.String getRemoteDirectory()
Get current working directory on the server after the change in directory. This value will be null if the operation failed.

Returns:
current working directory

setRemoteDirectory

public void setRemoteDirectory(java.lang.String remoteDirectory)
Set the current working directory on the server

Parameters:
remoteDirectory - new working directory


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