de.laures.cewolf.storage
Class LongTermSessionStorage

java.lang.Object
  extended byde.laures.cewolf.storage.LongTermSessionStorage
All Implemented Interfaces:
Storage

public class LongTermSessionStorage
extends java.lang.Object
implements Storage

Author:
brianf To change the template for this generated type comment go to Window - Preferences - Java - Code Generation - Code and Comments

Constructor Summary
LongTermSessionStorage()
           
 
Method Summary
 ChartImage getChartImage(java.lang.String id, javax.servlet.http.HttpServletRequest request)
          Retrieves a chart image.
 java.lang.String getKey(ChartImage cid)
           
 void init(javax.servlet.ServletContext servletContext)
          Method init.
 java.lang.String storeChartImage(ChartImage chartImage, javax.servlet.jsp.PageContext pageContext)
          Stores a chart image.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LongTermSessionStorage

public LongTermSessionStorage()
Method Detail

getKey

public final java.lang.String getKey(ChartImage cid)

storeChartImage

public java.lang.String storeChartImage(ChartImage chartImage,
                                        javax.servlet.jsp.PageContext pageContext)
                                 throws CewolfException
Description copied from interface: Storage
Stores a chart image.

Specified by:
storeChartImage in interface Storage
Returns:
String the storage id which is used to find the image in storage
Throws:
CewolfException

getChartImage

public ChartImage getChartImage(java.lang.String id,
                                javax.servlet.http.HttpServletRequest request)
Description copied from interface: Storage
Retrieves a chart image.

Specified by:
getChartImage in interface Storage
Parameters:
id - the id of the image
request - the request
Returns:
ChartImage the stored image instance

init

public void init(javax.servlet.ServletContext servletContext)
          throws CewolfException
Description copied from interface: Storage
Method init.

Specified by:
init in interface Storage
Parameters:
servletContext -
Throws:
CewolfException