|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.laures.cewolf.storage.LongTermSessionStorage
public class LongTermSessionStorage
Storage stores images in session, but expires them after a certain time.
This expiration time defaults to 300 seconds, and can be changed by adding
the timeout="xxx" parameter to
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 |
removeChartImage(java.lang.String cid,
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LongTermSessionStorage()
Method Detail |
---|
public final java.lang.String getKey(ChartImage cid)
public java.lang.String storeChartImage(ChartImage chartImage, javax.servlet.jsp.PageContext pageContext) throws CewolfException
Storage
storeChartImage
in interface Storage
chartImage
- the image to be storedpageContext
- servletContext which might be needed
CewolfException
public ChartImage getChartImage(java.lang.String id, javax.servlet.http.HttpServletRequest request)
Storage
getChartImage
in interface Storage
id
- the id of the imagerequest
- the request
public void init(javax.servlet.ServletContext servletContext) throws CewolfException
Storage
init
in interface Storage
CewolfException
public java.lang.String removeChartImage(java.lang.String cid, javax.servlet.http.HttpServletRequest request) throws CewolfException
Storage
removeChartImage
in interface Storage
cid
- Image idrequest
- Servlet request
CewolfException
Storage.removeChartImage(java.lang.String, javax.servlet.http.HttpServletRequest)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |