JSCAPE MFT Server

com.jscape.inet.mft.subsystems.reporting.html
Class HtmlMetricsFormatter

java.lang.Object
  extended by com.jscape.inet.mft.subsystems.reporting.html.HtmlMetricsFormatter
All Implemented Interfaces:
MetricsFormatter
Direct Known Subclasses:
DailyStatisticsFormatter, GeneralStatisticsFormatter, HourlyStatisticsFormatter, LastUserLogonFormatter, MonthlyStatisticsFormatter, TopAttachmentsReceivedFormatter, TopAttachmentsSentFormatter, TopDownloadsFormatter, TopErrorsFormatter, TopExternalDownloadsFormatter, TopExternalUploadsFormatter, TopHostsFormatter, TopUploadsFormatter, TopUsersFormatter

public abstract class HtmlMetricsFormatter
extends java.lang.Object
implements MetricsFormatter

Version:
1.0
Author:
Roman Sheshunov

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.jscape.inet.mft.subsystems.reporting.MetricsFormatter
MetricsFormatter.FormatterException
 
Constructor Summary
HtmlMetricsFormatter(ChartFormatter chartFormat, TableFormatter tableFormat)
           
 
Method Summary
 java.lang.String format(Metrics metrics, FormatterEnvironment environment)
          Formats the specified metrics.
 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
 
Methods inherited from interface com.jscape.inet.mft.subsystems.reporting.MetricsFormatter
supports
 

Constructor Detail

HtmlMetricsFormatter

public HtmlMetricsFormatter(ChartFormatter chartFormat,
                            TableFormatter tableFormat)
Method Detail

getMimeType

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

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

format

public java.lang.String format(Metrics metrics,
                               FormatterEnvironment environment)
                        throws MetricsFormatter.FormatterException
Description copied from interface: MetricsFormatter
Formats the specified metrics.

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

JSCAPE MFT Server

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