com.philemonworks.selfdiagnose.output
Class HTMLReporter

java.lang.Object
  extended by com.philemonworks.selfdiagnose.output.HTMLReporter
All Implemented Interfaces:
DiagnoseRunReporter

public class HTMLReporter
extends Object
implements DiagnoseRunReporter

HTMLReporter is to produce an HTML report for a DiagnoseRun.

Author:
ernestmicklei

Field Summary
static String BASIC_DATA
           
protected  StringBuffer html
           
static Date STARTUP_TIMESTAMP
           
 
Constructor Summary
HTMLReporter()
           
 
Method Summary
protected  void append(DiagnosticTaskResult result)
           
protected  void appendLinkBar(DiagnoseRun run)
           
protected  void appendLinkBarLinks(DiagnoseRun run)
           
 void appendReportBody(DiagnoseRun run)
           
protected  void appendTableHeader()
           
protected  void beginHTML()
           
protected  void data(String content, String cssClass)
           
protected  void endHTML()
           
 String getContent()
          Return the report contents
 String getContentType()
          Return the Http Response content type
protected  void header(String content)
           
 void report(DiagnoseRun run)
          Report a completed diagnose run
protected  void write(DiagnosticTaskResult result)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

html

protected StringBuffer html

BASIC_DATA

public static final String BASIC_DATA
See Also:
Constant Field Values

STARTUP_TIMESTAMP

public static final Date STARTUP_TIMESTAMP
Constructor Detail

HTMLReporter

public HTMLReporter()
Method Detail

report

public void report(DiagnoseRun run)
Description copied from interface: DiagnoseRunReporter
Report a completed diagnose run

Specified by:
report in interface DiagnoseRunReporter

appendReportBody

public void appendReportBody(DiagnoseRun run)

appendLinkBar

protected void appendLinkBar(DiagnoseRun run)

appendLinkBarLinks

protected void appendLinkBarLinks(DiagnoseRun run)

write

protected void write(DiagnosticTaskResult result)

appendTableHeader

protected void appendTableHeader()

append

protected void append(DiagnosticTaskResult result)

data

protected void data(String content,
                    String cssClass)

header

protected void header(String content)

beginHTML

protected void beginHTML()

endHTML

protected void endHTML()

getContent

public String getContent()
Description copied from interface: DiagnoseRunReporter
Return the report contents

Specified by:
getContent in interface DiagnoseRunReporter

getContentType

public String getContentType()
Description copied from interface: DiagnoseRunReporter
Return the Http Response content type

Specified by:
getContentType in interface DiagnoseRunReporter


Copyright © 2012. All Rights Reserved.