Package com.sun.enterprise.admin.report
Class XMLActionReporter
- java.lang.Object
-
- org.glassfish.api.ActionReport
-
- com.sun.enterprise.admin.report.ActionReporter
-
- com.sun.enterprise.admin.report.XMLActionReporter
-
- All Implemented Interfaces:
Serializable
@Service(name="xml") @PerLookup public class XMLActionReporter extends ActionReporter
Represents the action report as XML like this:
<action-report description="xxx" exit-code="xxx" [failure-cause="xxx"]>
<message-part message="xxx">
<property name="xxx" value="xxx"/>
...
<message-part message="xxx" type="xxx">
...
</message-part>
</message-part>
<action-report ...> [for subactions]
...
</action-report>
</action-report>- Author:
- tjquinn
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.glassfish.api.ActionReport
ActionReport.ExitCode, ActionReport.MessagePart
-
-
Field Summary
-
Fields inherited from class com.sun.enterprise.admin.report.ActionReporter
actionDescription, contentType, EOL_MARKER, exception, exitCode, subActions, topMessage
-
-
Constructor Summary
Constructors Constructor Description XMLActionReporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getContentType()
Returns the content type to be used in sending the response back to the client/caller.void
writeReport(OutputStream os)
Outputs the formatted information-
Methods inherited from class com.sun.enterprise.admin.report.ActionReporter
addSubActionsReport, appendMessage, getActionDescription, getActionExitCode, getCombinedMessages, getFailureCause, getMessage, getSubActionsReport, getTopMessagePart, hasFailures, hasSuccesses, hasWarnings, isFailure, isSuccess, isWarning, setActionDescription, setActionExitCode, setContentType, setFailure, setFailureCause, setMessage, setMessage, setSuccess, setWarning
-
Methods inherited from class org.glassfish.api.ActionReport
failure, failure, findProperty, getExtraProperties, getResultType, setExtraProperties, setResultType, toString
-
-
-
-
Method Detail
-
writeReport
public void writeReport(OutputStream os)
Description copied from class:ActionReport
Outputs the formatted information- Specified by:
writeReport
in classActionReport
- Parameters:
os
- The OutputStream to which the information is sent to
-
getContentType
public String getContentType()
Description copied from class:ActionReporter
Returns the content type to be used in sending the response back to the client/caller.This is the default type. Specific subclasses of ActionReporter might override the method to return a different valid type.
- Overrides:
getContentType
in classActionReporter
- Returns:
- content type to be used in formatting the command response to the client
-
-