Class 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
    • Constructor Detail

      • XMLActionReporter

        public XMLActionReporter()
    • Method Detail

      • writeReport

        public void writeReport​(OutputStream os)
        Description copied from class: ActionReport
        Outputs the formatted information
        Specified by:
        writeReport in class ActionReport
        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 class ActionReporter
        Returns:
        content type to be used in formatting the command response to the client