class: StatisticChartServlet

public class: StatisticChartServlet
Author: Markus Haarlaender (initial creation)
Project: Phase: 1.0; Status: Proposed; Version: $Revision: 2605 $ $LastChangedDate: 2009-05-07 10:; Complexity: 1
Dates: Created: 16.07.2009 15:33:26; Modified: 16.07.2009 15:33:26;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {6AE1FB96-210B-4c5c-A438-242A6449E0BA}
Servlet that delivers image files in PNG format which incorporate statistic charts built from data from eSciDoc statistic service.
 

Goto: Custom Properties, Fields, Methods

Appears in: statistic_charts

Custom Properties
 
StatisticChartServlet Attributes
Attribute Details
private static const String
  CONTENT_TYPE
Initial: "image/png"
private String
  id
private static const String
  idParameterName
Initial: "id"
private String
  language
private static const String
  languageParameterName
Initial: "lang"
private Logger
  logger
Initial: Logger.getLogger(StatisticChartServlet.class)
private int
  numberOfMonths
private static const String
  numberOfMonthsParameterName
Initial: "months"
private String
  type
private static const String
  typeParameterName
Initial: "type"
 
StatisticChartServlet Methods
Operation Details
private
createChart(
   CategoryDataset dataset):JFreeChart
Sequential
Notes: Creates the statistic chart.
@return The chart.
private
createDataset():CategoryDataset
Sequential
Tags: throws=Exception
Notes: Retrieves statistic data from the framework and creates the dataset for the visualisation and the given months. If there was no request in a month, a dataset with value "0" is added.
@return The dataset.
public
doGet(
   HttpServletRequest request,
   HttpServletResponse response):void
Sequential
Tags: throws=ServletException,IOException
public
init(
   ServletConfig config):void
Sequential
Tags: throws=ServletException