public class CmsShellCommandResult extends java.lang.Object implements java.io.Serializable
Constructor and Description |
---|
CmsShellCommandResult() |
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode()
Gets the error code.
|
java.lang.String |
getOutput()
Gets the command output.
|
java.lang.String |
getPrompt()
Gets the prompt.
|
boolean |
hasEcho()
Returns the echo mode.
|
boolean |
hasError()
Returns true if an error has occurred.
|
boolean |
isExitCalled()
Returns true if exit was called.
|
void |
setEcho(boolean echo)
Sets the echo mode.
|
void |
setErrorCode(int errorCode)
Sets the error code.
|
void |
setExitCalled(boolean exitCalled)
Sets the 'exitCalled' flag.
|
void |
setHasError(boolean hasError)
Sets the error mode.
|
void |
setOutput(java.lang.String outputString)
Sets the command output.
|
void |
setPrompt(java.lang.String prompt)
Sets the prompt.
|
public CmsShellCommandResult()
public int getErrorCode()
public java.lang.String getOutput()
public java.lang.String getPrompt()
public boolean hasEcho()
public boolean hasError()
public boolean isExitCalled()
public void setEcho(boolean echo)
echo
- the echo modepublic void setErrorCode(int errorCode)
errorCode
- the error codepublic void setExitCalled(boolean exitCalled)
exitCalled
- the new valuepublic void setHasError(boolean hasError)
hasError
- the error modepublic void setOutput(java.lang.String outputString)
outputString
- the command outputpublic void setPrompt(java.lang.String prompt)
prompt
- the prompt