Class ExecuteCommandResult

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

public class ExecuteCommandResult extends AsyncResult
Result of executing a literal command on the server
Version:
$Revision$
Author:
Bruce Blackshaw
  • Constructor Details

    • ExecuteCommandResult

      public ExecuteCommandResult(String command)
  • Method Details

    • endAsync

      public String endAsync() throws FTPException, 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:
      IOException
      FTPException
    • getResult

      public String getResult()
      Get the result of applying the command
      Returns:
      result strings
    • setResult

      public void setResult(String result)
      Set the command result string
      Parameters:
      result - result returned by server
    • getCommand

      public String getCommand()
      Get the literal command executed
      Returns:
      directory name