Class CommandResult

java.lang.Object
com.enterprisedt.net.ftp.script.CommandResult

public class CommandResult extends Object
Result from a script command
Version:
$Revision$
Author:
Bruce Blackshaw
  • Constructor Details

    • CommandResult

      public CommandResult()
      Default constructor
    • CommandResult

      public CommandResult(String debug, String shellOutput)
      Constructor
      Parameters:
      debug -
      shellOutput -
    • CommandResult

      public CommandResult(boolean forceScriptExit, String debug, String shellOutput)
      Constructor
      Parameters:
      debug -
      shellOutput -
  • Method Details

    • forceScriptExit

      public boolean forceScriptExit()
      Should force script to exit
      Returns:
    • getDebug

      public String getDebug()
      Get the debug string. This is debug feedback from the command, which may or may not be displayed depending whether debug is switched on
      Returns:
      string
    • getShellOutput

      public String getShellOutput()
      Get the output string appropriate for a shell
      Returns:
      string
    • forceShellExit

      public boolean forceShellExit()
    • setForceShellExit

      public void setForceShellExit(boolean forceShellExit)
    • getServerMessageLogs

      public String[] getServerMessageLogs()
    • getServerMessageLog

      public String getServerMessageLog()
    • setServerMessageLog

      public void setServerMessageLog(String[] serverMessageLog)
    • getLastFTPReply

      public FTPReply getLastFTPReply()
    • setLastFTPReply

      public void setLastFTPReply(FTPReply lastFTPReply)
    • getLastException

      public Exception getLastException()
    • setLastException

      public void setLastException(Exception lastException)
    • getDownloadCount

      public int getDownloadCount()
    • setDownloadCount

      public void setDownloadCount(int downloadCount)
    • getUploadCount

      public int getUploadCount()
    • setUploadCount

      public void setUploadCount(int uploadCount)
    • getDeleteCount

      public int getDeleteCount()
    • setDeleteCount

      public void setDeleteCount(int deleteCount)