Package org.opencms.rmi
Class CmsShellCommandResult
java.lang.Object
org.opencms.rmi.CmsShellCommandResult
- All Implemented Interfaces:
Serializable
An object containing the output of a remote shell command and also the updated values for some of the
internal state fields of the client application.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets the error code.Gets the command output.Gets the prompt.boolean
hasEcho()
Returns the echo mode.boolean
hasError()
Returns true if an error has occurred.boolean
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
Sets the command output.void
Sets the prompt.
-
Constructor Details
-
CmsShellCommandResult
public CmsShellCommandResult()
-
-
Method Details
-
getErrorCode
Gets the error code.- Returns:
- the error code
-
getOutput
Gets the command output.- Returns:
- the command output
-
getPrompt
Gets the prompt.- Returns:
- the prompt
-
hasEcho
Returns the echo mode.- Returns:
- the echo mode
-
hasError
Returns true if an error has occurred.- Returns:
- true if an error has occurred
-
isExitCalled
Returns true if exit was called.- Returns:
- true if exit was called
-
setEcho
Sets the echo mode.- Parameters:
echo
- the echo mode
-
setErrorCode
Sets the error code.- Parameters:
errorCode
- the error code
-
setExitCalled
Sets the 'exitCalled' flag.- Parameters:
exitCalled
- the new value
-
setHasError
Sets the error mode.- Parameters:
hasError
- the error mode
-
setOutput
Sets the command output.- Parameters:
outputString
- the command output
-
setPrompt
Sets the prompt.- Parameters:
prompt
- the prompt
-