de.laures.cewolf.storage
Class AbstractSessionStorage
java.lang.Object
de.laures.cewolf.storage.AbstractSessionStorage
- All Implemented Interfaces:
- Storage
- Direct Known Subclasses:
- ClusterableSessionStorage, TransientSessionStorage
- public abstract class AbstractSessionStorage
- extends java.lang.Object
- implements Storage
- Author:
- glaures
|
Method Summary |
boolean |
contains(ChartImage cid,
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 cid)
|
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 |
AbstractSessionStorage
public AbstractSessionStorage()
storeChartImage
public java.lang.String storeChartImage(ChartImage cid,
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- See Also:
de.laures.cewolf.Storage#storeChartImage(ChartImage, ServletContext)
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 imagerequest - the request
- Returns:
- ChartImage the stored image instance
- See Also:
de.laures.cewolf.Storage#getChartImage(String)
contains
public boolean contains(ChartImage cid,
javax.servlet.jsp.PageContext pageContext)
getKey
public final java.lang.String getKey(ChartImage cid)
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)