public abstract class ActionReporter
extends org.glassfish.api.ActionReport
| Modifier and Type | Field and Description |
|---|---|
protected String |
actionDescription |
protected String |
contentType |
static String |
EOL_MARKER |
protected Throwable |
exception |
protected org.glassfish.api.ActionReport.ExitCode |
exitCode |
protected List<ActionReporter> |
subActions |
protected org.glassfish.api.ActionReport.MessagePart |
topMessage |
| Constructor and Description |
|---|
ActionReporter()
Creates a new instance of HTMLActionReporter
|
| Modifier and Type | Method and Description |
|---|---|
org.glassfish.api.ActionReport |
addSubActionsReport() |
void |
appendMessage(String message) |
String |
getActionDescription() |
org.glassfish.api.ActionReport.ExitCode |
getActionExitCode() |
void |
getCombinedMessages(ActionReporter aReport,
StringBuilder sb)
Returns combined messages.
|
String |
getContentType()
Returns the content type to be used in sending the response back to
the client/caller.
|
Throwable |
getFailureCause() |
String |
getMessage() |
List<ActionReporter> |
getSubActionsReport() |
org.glassfish.api.ActionReport.MessagePart |
getTopMessagePart() |
boolean |
hasFailures() |
boolean |
hasSuccesses() |
boolean |
hasWarnings() |
boolean |
isFailure() |
boolean |
isSuccess() |
boolean |
isWarning() |
void |
setActionDescription(String message) |
void |
setActionExitCode(org.glassfish.api.ActionReport.ExitCode exitCode) |
void |
setContentType(String s) |
void |
setFailure() |
void |
setFailureCause(Throwable t) |
void |
setMessage(InputStream in) |
void |
setMessage(String message) |
void |
setSuccess() |
void |
setWarning() |
protected Throwable exception
protected String actionDescription
protected List<ActionReporter> subActions
protected org.glassfish.api.ActionReport.ExitCode exitCode
protected org.glassfish.api.ActionReport.MessagePart topMessage
protected String contentType
public static final String EOL_MARKER
public ActionReporter()
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 org.glassfish.api.ActionReportpublic String getActionDescription()
public void setFailureCause(Throwable t)
setFailureCause in class org.glassfish.api.ActionReportpublic Throwable getFailureCause()
getFailureCause in class org.glassfish.api.ActionReportpublic org.glassfish.api.ActionReport.MessagePart getTopMessagePart()
getTopMessagePart in class org.glassfish.api.ActionReportpublic org.glassfish.api.ActionReport addSubActionsReport()
addSubActionsReport in class org.glassfish.api.ActionReportpublic List<ActionReporter> getSubActionsReport()
getSubActionsReport in class org.glassfish.api.ActionReportpublic void setActionExitCode(org.glassfish.api.ActionReport.ExitCode exitCode)
setActionExitCode in class org.glassfish.api.ActionReportpublic org.glassfish.api.ActionReport.ExitCode getActionExitCode()
getActionExitCode in class org.glassfish.api.ActionReportpublic void setMessage(String message)
setMessage in class org.glassfish.api.ActionReportpublic void appendMessage(String message)
appendMessage in class org.glassfish.api.ActionReportpublic String getMessage()
getMessage in class org.glassfish.api.ActionReportpublic void setMessage(InputStream in)
setMessage in class org.glassfish.api.ActionReportpublic String getContentType()
This is the default type. Specific subclasses of ActionReporter might override the method to return a different valid type.
getContentType in class org.glassfish.api.ActionReportpublic void setContentType(String s)
setContentType in class org.glassfish.api.ActionReportpublic void getCombinedMessages(ActionReporter aReport, StringBuilder sb)
Note: This method is a recursive implementation.
aReport - a given (usually top-level) ActionReporter instancesb - StringBuilder instance that contains all the messagespublic boolean hasSuccesses()
hasSuccesses in class org.glassfish.api.ActionReportpublic boolean hasWarnings()
hasWarnings in class org.glassfish.api.ActionReportpublic boolean hasFailures()
hasFailures in class org.glassfish.api.ActionReportCopyright © 2013. All Rights Reserved.