com.sun.enterprise.v3.common
Class XMLActionReporter

java.lang.Object
  extended by org.glassfish.api.ActionReport
      extended by com.sun.enterprise.v3.common.ActionReporter
          extended by com.sun.enterprise.v3.common.XMLActionReporter

@Service(name="xml")
@Scoped(value=org.jvnet.hk2.component.PerLookup.class)
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

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.v3.common.ActionReporter
actionDescription, contentType, EOL_MARKER, exception, exitCode, subActions, topMessage
 
Constructor Summary
XMLActionReporter()
           
 
Method Summary
 String getContentType()
          Returns the content type to be used in sending the response back to the client/caller.
 void writeReport(OutputStream os)
           
 
Methods inherited from class com.sun.enterprise.v3.common.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, getExtraProperties, getResultType, setExtraProperties, setResultType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLActionReporter

public XMLActionReporter()
Method Detail

writeReport

public void writeReport(OutputStream os)
Specified by:
writeReport in class ActionReport

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 class ActionReporter
Returns:
content type to be used in formatting the command response to the client


Copyright © 2012. All Rights Reserved.