de.laures.cewolf.storage
Class FileStorage

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

public class FileStorage
extends java.lang.Object
implements Storage

Author:
guido To change this generated comment edit the template variable "typecomment": Window>Preferences>Java>Templates. To enable and disable the creation of type comments go to Window>Preferences>Java>Code Generation.

Constructor Summary
FileStorage()
           
 
Method Summary
 boolean contains(ChartImage chartImage, javax.servlet.jsp.PageContext pageContext)
           
 ChartImage getChartImage(java.lang.String id, javax.servlet.http.HttpServletRequest request)
          Retrieves a chart image.
 java.lang.String getKey(ChartImage chartImage)
           
 void init(javax.servlet.ServletContext servletContext)
          Method init.
 java.lang.String storeChartImage(ChartImage cid, 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

FileStorage

public FileStorage()
Method Detail

storeChartImage

public java.lang.String storeChartImage(ChartImage cid,
                                        javax.servlet.jsp.PageContext pageContext)
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
See Also:
Storage.storeChartImage(ChartImage, PageContext)

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
See Also:
Storage.getChartImage(String, HttpServletRequest)

contains

public boolean contains(ChartImage chartImage,
                        javax.servlet.jsp.PageContext pageContext)
See Also:
de.laures.cewolf.Storage#contains(ChartImage, PageContext)

getKey

public java.lang.String getKey(ChartImage chartImage)
See Also:
de.laures.cewolf.Storage#getKey(ChartImage)

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
See Also:
Storage.init(ServletContext)