2 * Created on Aug 2, 2004
4 * To change the template for this generated file go to
5 * Window - Preferences - Java - Code Generation - Code and Comments
7 package de.laures.cewolf.storage;
11 import de.laures.cewolf.ChartImage;
16 * To change the template for this generated type comment go to Window -
17 * Preferences - Java - Code Generation - Code and Comments
19 public class SessionStorageItem
22 ChartImage chart = null;
25 public SessionStorageItem( ChartImage theChart, String theCid, Date theTimeout )
32 public String toString()
34 return ("SSI: id:"+cid+" expires:"+timeout);
36 public final boolean isExpired(Date currentTime)
38 return currentTime.after(timeout);
41 * @return Returns the chart.
43 public ChartImage getChart()
51 public void setChart( ChartImage chart )
56 * @return Returns the cid.
58 public String getCid()
66 public void setCid( String cid )
73 public SessionStorageItem()
76 // TODO Auto-generated constructor stub
80 * @return Returns the timeout.
82 public Date getTimeout()
90 public void setTimeout( Date timeout )
92 this.timeout = timeout;