| java.lang.Object de.schlund.pfixxml.SessionCleaner
SessionCleaner | public class SessionCleaner (Code) | | The SessionCleaner class is used to remove stored SPDocuments from the session
after a timout. This helps in reducing the memory usage as those documents
are only stored for possible reuse by following subrequests (for frames). After the timeout one should
be reasonable sure that no subrequests will follow (During development, the AbstractXMLServlet
should make sure to call storeSPDocument() with the timeoutsec parameter set to
a very high value, to be able to get the stored SPDocument for debugging purposes).
Created: Thu Mar 20 16:45:31 2003
author: Jens Lautenbacher version: $Id: SessionCleaner.java 3388 2008-02-29 01:31:09Z jenstl $ |
invalidateSession | public void invalidateSession(HttpSession session, int timeoutsecs)(Code) | | |
storeSPDocument | public void storeSPDocument(SPDocument spdoc, CacheValueLRU<String, SPDocument> storeddoms, int timeoutsecs)(Code) | | Called from the AbstractXMLServlet to store a SPDocument into the supplied SPCache structure
(which in turn is stored in the HTTPSession). This will also start a TimerTask that removes
the stored SPDocument after the given timeout.
Parameters: spdoc - a SPDocument value Parameters: storeddoms - a Map value Parameters: timeoutsecs - a int value. The timeout when the document should be removed. |
storeSPDocument | public void storeSPDocument(SPDocument spdoc, String frameName, CacheValueLRU<String, SPDocument> storeddoms, int timeoutsecs)(Code) | | Called from the AbstractXMLServlet to store a SPDocument into the supplied SPCache structure
(which in turn is stored in the HTTPSession). This will also start a TimerTask that removes
the stored SPDocument after the given timeout.
Parameters: spdoc - a SPDocument value Parameters: storeddoms - a Map value Parameters: timeoutsecs - a int value. The timeout when the document should be removed. |
|
|