com.sun.enterprise.v3.common
Class JsonActionReporter

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

@Service(name="json")
@Scoped(value=org.jvnet.hk2.component.PerLookup.class)
public class JsonActionReporter
extends ActionReporter

Writes command output to a json stream

Author:
Ludovic Champenois

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
JsonActionReporter()
          Creates a new instance of JsonActionReporter
 
Method Summary
 void writeReport(OutputStream os)
           
 
Methods inherited from class com.sun.enterprise.v3.common.ActionReporter
addSubActionsReport, appendMessage, getActionDescription, getActionExitCode, getCombinedMessages, getContentType, 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

JsonActionReporter

public JsonActionReporter()
Creates a new instance of JsonActionReporter

Method Detail

writeReport

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


Copyright © 2012. All Rights Reserved.