de.laures.cewolf
Interface Storage

All Known Implementing Classes:
AbstractSessionStorage, FileStorage, LongTermSessionStorage

public interface Storage

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 paramter 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

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

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)
Retrieves a chart image.

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
Method init.

Parameters:
servletContext -
Throws:
CewolfException

removeChartImage

public 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


Copyright © {inceptionYear}-2007 null. All Rights Reserved.