public class ChartDeleter extends java.lang.Object implements javax.servlet.http.HttpSessionBindingListener, java.io.Serializable
| Constructor and Description |
|---|
ChartDeleter()
Blank constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChart(java.lang.String filename)
Add a chart to be deleted when the session expires
|
boolean |
isChartAvailable(java.lang.String filename)
Checks to see if a chart is in the list of charts to be deleted
|
void |
valueBound(javax.servlet.http.HttpSessionBindingEvent event)
Binding this object to the session has no additional effects.
|
void |
valueUnbound(javax.servlet.http.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.
|
public ChartDeleter()
public void addChart(java.lang.String filename)
filename - the name of the chart in the temporary directory to be
deleted.public boolean isChartAvailable(java.lang.String filename)
filename - the name of the chart in the temporary directory.public void valueBound(javax.servlet.http.HttpSessionBindingEvent event)
valueBound in interface javax.servlet.http.HttpSessionBindingListenerevent - the session bind event.public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
valueUnbound in interface javax.servlet.http.HttpSessionBindingListenerevent - the session unbind event.