com.enterprisedt.net.ftp.script
Class CommandResult

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

public class CommandResult
extends java.lang.Object

Result from a script command

Version:
$Revision: 1.3 $
Author:
Bruce Blackshaw

Constructor Summary
CommandResult()
          Default constructor
CommandResult(boolean forceScriptExit, java.lang.String debug, java.lang.String shellOutput)
          Constructor
CommandResult(java.lang.String debug, java.lang.String shellOutput)
          Constructor
 
Method Summary
 boolean forceScriptExit()
          Should force script to exit
 boolean forceShellExit()
           
 java.lang.String getDebug()
          Get the debug string.
 int getDeleteCount()
           
 int getDownloadCount()
           
 java.lang.Exception getLastException()
           
 FTPReply getLastFTPReply()
           
 java.lang.String getServerMessageLog()
           
 java.lang.String[] getServerMessageLogs()
           
 java.lang.String getShellOutput()
          Get the output string appropriate for a shell
 int getUploadCount()
           
 void setDeleteCount(int deleteCount)
           
 void setDownloadCount(int downloadCount)
           
 void setForceShellExit(boolean forceShellExit)
           
 void setLastException(java.lang.Exception lastException)
           
 void setLastFTPReply(FTPReply lastFTPReply)
           
 void setServerMessageLog(java.lang.String[] serverMessageLog)
           
 void setUploadCount(int uploadCount)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandResult

public CommandResult()
Default constructor


CommandResult

public CommandResult(java.lang.String debug,
                     java.lang.String shellOutput)
Constructor

Parameters:
debug -
shellOutput -

CommandResult

public CommandResult(boolean forceScriptExit,
                     java.lang.String debug,
                     java.lang.String shellOutput)
Constructor

Parameters:
debug -
shellOutput -
Method Detail

forceScriptExit

public boolean forceScriptExit()
Should force script to exit

Returns:

getDebug

public java.lang.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 java.lang.String getShellOutput()
Get the output string appropriate for a shell

Returns:
string

forceShellExit

public boolean forceShellExit()

setForceShellExit

public void setForceShellExit(boolean forceShellExit)

getServerMessageLogs

public java.lang.String[] getServerMessageLogs()

getServerMessageLog

public java.lang.String getServerMessageLog()

setServerMessageLog

public void setServerMessageLog(java.lang.String[] serverMessageLog)

getLastFTPReply

public FTPReply getLastFTPReply()

setLastFTPReply

public void setLastFTPReply(FTPReply lastFTPReply)

getLastException

public java.lang.Exception getLastException()

setLastException

public void setLastException(java.lang.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)


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