com.enterprisedt.net.ftp.async
Class ExecuteCommandResult

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

public class ExecuteCommandResult
extends AsyncResult

Result of executing a literal command on the server

Version:
$Revision: 1.1 $
Author:
Bruce Blackshaw

Constructor Summary
ExecuteCommandResult(java.lang.String command)
           
 
Method Summary
 java.lang.String endAsync()
          This method is called to complete the asynchronous operation.
 java.lang.String getCommand()
          Get the literal command executed
 java.lang.String getResult()
          Get the result of applying the command
 void setResult(java.lang.String result)
          Set the command result string
 
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

ExecuteCommandResult

public ExecuteCommandResult(java.lang.String command)
Method Detail

endAsync

public java.lang.String 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

getResult

public java.lang.String getResult()
Get the result of applying the command

Returns:
result strings

setResult

public void setResult(java.lang.String result)
Set the command result string

Parameters:
result - result returned by server

getCommand

public java.lang.String getCommand()
Get the literal command executed

Returns:
directory name


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