Package com.enterprisedt.net.ftp.script
Class CommandResult
java.lang.Object
com.enterprisedt.net.ftp.script.CommandResult
Result from a script command
- Version:
- $Revision$
- Author:
- Bruce Blackshaw
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorCommandResult(boolean forceScriptExit, String debug, String shellOutput) ConstructorCommandResult(String debug, String shellOutput) Constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanShould force script to exitbooleangetDebug()Get the debug string.intintString[]Get the output string appropriate for a shellintvoidsetDeleteCount(int deleteCount) voidsetDownloadCount(int downloadCount) voidsetForceShellExit(boolean forceShellExit) voidsetLastException(Exception lastException) voidsetLastFTPReply(FTPReply lastFTPReply) voidsetServerMessageLog(String[] serverMessageLog) voidsetUploadCount(int uploadCount)
-
Constructor Details
-
CommandResult
public CommandResult()Default constructor -
CommandResult
Constructor- Parameters:
debug-shellOutput-
-
CommandResult
Constructor- Parameters:
debug-shellOutput-
-
-
Method Details
-
forceScriptExit
public boolean forceScriptExit()Should force script to exit- Returns:
-
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
Get the output string appropriate for a shell- Returns:
- string
-
forceShellExit
public boolean forceShellExit() -
setForceShellExit
public void setForceShellExit(boolean forceShellExit) -
getServerMessageLogs
-
getServerMessageLog
-
setServerMessageLog
-
getLastFTPReply
-
setLastFTPReply
-
getLastException
-
setLastException
-
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)
-