Package org.opencms.rmi
Class CmsShellCommandResult
- java.lang.Object
-
- org.opencms.rmi.CmsShellCommandResult
-
- All Implemented Interfaces:
java.io.Serializable
public class CmsShellCommandResult extends java.lang.Object implements java.io.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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CmsShellCommandResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetErrorCode()Gets the error code.java.lang.StringgetOutput()Gets the command output.java.lang.StringgetPrompt()Gets the prompt.booleanhasEcho()Returns the echo mode.booleanhasError()Returns true if an error has occurred.booleanisExitCalled()Returns true if exit was called.voidsetEcho(boolean echo)Sets the echo mode.voidsetErrorCode(int errorCode)Sets the error code.voidsetExitCalled(boolean exitCalled)Sets the 'exitCalled' flag.voidsetHasError(boolean hasError)Sets the error mode.voidsetOutput(java.lang.String outputString)Sets the command output.voidsetPrompt(java.lang.String prompt)Sets the prompt.
-
-
-
Constructor Detail
-
CmsShellCommandResult
public CmsShellCommandResult()
-
-
Method Detail
-
getErrorCode
public int getErrorCode()
Gets the error code.- Returns:
- the error code
-
getOutput
public java.lang.String getOutput()
Gets the command output.- Returns:
- the command output
-
getPrompt
public java.lang.String getPrompt()
Gets the prompt.- Returns:
- the prompt
-
hasEcho
public boolean hasEcho()
Returns the echo mode.- Returns:
- the echo mode
-
hasError
public boolean hasError()
Returns true if an error has occurred.- Returns:
- true if an error has occurred
-
isExitCalled
public boolean isExitCalled()
Returns true if exit was called.- Returns:
- true if exit was called
-
setEcho
public void setEcho(boolean echo)
Sets the echo mode.- Parameters:
echo- the echo mode
-
setErrorCode
public void setErrorCode(int errorCode)
Sets the error code.- Parameters:
errorCode- the error code
-
setExitCalled
public void setExitCalled(boolean exitCalled)
Sets the 'exitCalled' flag.- Parameters:
exitCalled- the new value
-
setHasError
public void setHasError(boolean hasError)
Sets the error mode.- Parameters:
hasError- the error mode
-
setOutput
public void setOutput(java.lang.String outputString)
Sets the command output.- Parameters:
outputString- the command output
-
setPrompt
public void setPrompt(java.lang.String prompt)
Sets the prompt.- Parameters:
prompt- the prompt
-
-