public class CliActionReport extends ActionReport
ActionReport.ExitCode, ActionReport.MessagePart| Modifier and Type | Field and Description |
|---|---|
protected String |
actionDescription |
protected Throwable |
exception |
protected ActionReport.ExitCode |
exitCode |
protected List<CliActionReport> |
subActions |
protected ActionReport.MessagePart |
topMessage |
| Constructor and Description |
|---|
CliActionReport()
Creates a new instance of HTMLActionReporter
|
| Modifier and Type | Method and Description |
|---|---|
ActionReport |
addSubActionsReport() |
void |
appendMessage(String message) |
String |
getActionDescription() |
ActionReport.ExitCode |
getActionExitCode() |
String |
getContentType() |
Throwable |
getFailureCause() |
String |
getMessage() |
List<CliActionReport> |
getSubActionsReport() |
ActionReport.MessagePart |
getTopMessagePart() |
boolean |
hasFailures()
return true if the action report or a subaction report has ExitCode.FAILURE.
|
boolean |
hasSuccesses()
return true if the action report or a subaction report has ExitCode.SUCCESS.
|
boolean |
hasWarnings()
return true if the action report or a subaction report has ExitCode.WARNING.
|
boolean |
isFailure() |
boolean |
isSuccess() |
boolean |
isWarning() |
void |
setActionDescription(String message) |
void |
setActionExitCode(ActionReport.ExitCode exitCode)
Sets the exit code for the report.
|
void |
setContentType(String s) |
void |
setFailure() |
void |
setFailureCause(Throwable t) |
void |
setMessage(InputStream in) |
void |
setMessage(String message) |
void |
setSuccess() |
void |
setWarning() |
String |
toString() |
void |
writeReport(OutputStream os)
Outputs the formatted information
|
failure, failure, findProperty, getExtraProperties, getResultType, setExtraProperties, setResultTypeprotected Throwable exception
protected String actionDescription
protected List<CliActionReport> subActions
protected ActionReport.ExitCode exitCode
protected ActionReport.MessagePart topMessage
public CliActionReport()
public void setFailure()
public boolean isFailure()
public void setWarning()
public boolean isWarning()
public boolean isSuccess()
public void setSuccess()
public void setActionDescription(String message)
setActionDescription in class ActionReportpublic String getActionDescription()
public void setFailureCause(Throwable t)
setFailureCause in class ActionReportpublic Throwable getFailureCause()
getFailureCause in class ActionReportpublic ActionReport.MessagePart getTopMessagePart()
getTopMessagePart in class ActionReportpublic ActionReport addSubActionsReport()
addSubActionsReport in class ActionReportpublic List<CliActionReport> getSubActionsReport()
getSubActionsReport in class ActionReportpublic void setActionExitCode(ActionReport.ExitCode exitCode)
ActionReportsetActionExitCode in class ActionReportpublic ActionReport.ExitCode getActionExitCode()
getActionExitCode in class ActionReportpublic void setMessage(String message)
setMessage in class ActionReportpublic void appendMessage(String message)
appendMessage in class ActionReportpublic String getMessage()
getMessage in class ActionReportpublic void setMessage(InputStream in)
setMessage in class ActionReportpublic String getContentType()
getContentType in class ActionReportpublic void setContentType(String s)
setContentType in class ActionReportpublic boolean hasSuccesses()
ActionReporthasSuccesses in class ActionReportpublic boolean hasWarnings()
ActionReporthasWarnings in class ActionReportpublic boolean hasFailures()
ActionReporthasFailures in class ActionReportpublic void writeReport(OutputStream os) throws IOException
ActionReportwriteReport in class ActionReportos - The OutputStream to which the information is sent toIOExceptionCopyright © 2017. All rights reserved.