public class

ChartDeleter

extends Object
implements Serializable
java.lang.Object
   ↳ org.jfree.chart.servlet.ChartDeleter

Class Overview

Used for deleting charts from the temporary directory when the users session expires.

Summary

Public Constructors
ChartDeleter()
Blank constructor.
Public Methods
void addChart(String filename)
Add a chart to be deleted when the session expires
boolean isChartAvailable(String filename)
Checks to see if a chart is in the list of charts to be deleted
void valueBound(HttpSessionBindingEvent event)
Binding this object to the session has no additional effects.
void valueUnbound(HttpSessionBindingEvent event)
When this object is unbound from the session (including upon session expiry) the files that have been added to the ArrayList are iterated and deleted.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ChartDeleter ()

Blank constructor.

Public Methods

public void addChart (String filename)

Add a chart to be deleted when the session expires

Parameters
filename the name of the chart in the temporary directory to be deleted.

public boolean isChartAvailable (String filename)

Checks to see if a chart is in the list of charts to be deleted

Parameters
filename the name of the chart in the temporary directory.
Returns
  • A boolean value indicating whether the chart is present in the list.

public void valueBound (HttpSessionBindingEvent event)

Binding this object to the session has no additional effects.

Parameters
event the session bind event.

public void valueUnbound (HttpSessionBindingEvent event)

When this object is unbound from the session (including upon session expiry) the files that have been added to the ArrayList are iterated and deleted.

Parameters
event the session unbind event.