JSCAPE MFT Server

com.jscape.inet.mft.subsystems.reporting
Class TemplateReportFormatter

java.lang.Object
  extended by com.jscape.inet.mft.subsystems.reporting.TemplateReportFormatter
All Implemented Interfaces:
ReportFormatter

public class TemplateReportFormatter
extends java.lang.Object
implements ReportFormatter

Author:
Alex Usun

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.jscape.inet.mft.subsystems.reporting.ReportFormatter
ReportFormatter.FormatterException
 
Constructor Summary
TemplateReportFormatter(com.jscape.util.io.DataSource templateFile, java.util.Collection<MetricsFormatter> metricsFormatters)
           
 
Method Summary
 java.lang.String format(Report report, FormatterEnvironment environment)
          Formats the specified report.
 java.lang.String getMimeType()
          Returns MIME media type returned from format method.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateReportFormatter

public TemplateReportFormatter(com.jscape.util.io.DataSource templateFile,
                               java.util.Collection<MetricsFormatter> metricsFormatters)
Method Detail

getMimeType

public java.lang.String getMimeType()
Description copied from interface: ReportFormatter
Returns MIME media type returned from format method.

Specified by:
getMimeType in interface ReportFormatter
Returns:
supported MIME media type

format

public java.lang.String format(Report report,
                               FormatterEnvironment environment)
                        throws ReportFormatter.FormatterException
Description copied from interface: ReportFormatter
Formats the specified report.

Specified by:
format in interface ReportFormatter
Parameters:
report - a report to format
environment - an environment
Returns:
a formatted report data
Throws:
ReportFormatter.FormatterException - if an error occurs

JSCAPE MFT Server

Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved