de.laures.cewolf
Interface Storage

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
AbstractSessionStorage, ClusterableSessionStorage, FileStorage, LongTermSessionStorage, TransientSessionStorage

public interface Storage
extends java.io.Serializable

Pluggable storage. Implement this class to change the storage concept which Cewolf uses to store chart imanges and provide the implementation class name as init parameter storage for Cewolf servlet.

Author:
glaures

Method Summary
 ChartImage getChartImage(java.lang.String id, javax.servlet.http.HttpServletRequest request)
          Retrieves a chart image.
 void init(javax.servlet.ServletContext servletContext)
          Method init.
 java.lang.String removeChartImage(java.lang.String imgId, javax.servlet.http.HttpServletRequest request)
          Removes the image from the storage
 java.lang.String storeChartImage(ChartImage chartImage, javax.servlet.jsp.PageContext pageContext)
          Stores a chart image.
 

Method Detail

storeChartImage

java.lang.String storeChartImage(ChartImage chartImage,
                                 javax.servlet.jsp.PageContext pageContext)
                                 throws CewolfException
Stores a chart image.

Parameters:
chartImage - the image to be stored
pageContext - servletContext which might be needed
Returns:
String the storage id which is used to find the image in storage
Throws:
CewolfException

getChartImage

ChartImage getChartImage(java.lang.String id,
                         javax.servlet.http.HttpServletRequest request)
Retrieves a chart image.

Parameters:
id - the id of the image
request - the request
Returns:
ChartImage the stored image instance

init

void init(javax.servlet.ServletContext servletContext)
          throws CewolfException
Method init.

Parameters:
servletContext -
Throws:
CewolfException

removeChartImage

java.lang.String removeChartImage(java.lang.String imgId,
                                  javax.servlet.http.HttpServletRequest request)
                                  throws CewolfException
Removes the image from the storage

Parameters:
imgId - Image id
request - Servlet request
Returns:
Image id
Throws:
CewolfException


cewolf tag library - web charts with JFreeChart