com.xmlserv.app.basket
Class BasketCleanup

java.lang.Object
  |
  +--com.xmlserv.main.XMLServBackendImpl
        |
        +--com.xmlserv.app.AppBase
              |
              +--com.xmlserv.app.basket.BasketCleanup
All Implemented Interfaces:
XMLServBackend

public class BasketCleanup
extends AppBase

Cleanup unused baskets (i.e. remove baskets without a name and without content).

Version:
$Id: BasketCleanup.java,v 1.7 2003/01/15 20:26:38 muecke Exp $
Author:
Wolfram Saringer

Constructor Summary
BasketCleanup()
          Create empty object. init() must be called before this object can be used.
 
Method Summary
 void init()
          Initialize object.
 org.jdom.Document process(javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest req, SecurityManager securitymanager)
          Cleanup baskets for thi user.
 
Methods inherited from class com.xmlserv.app.AppBase
checkoutConn, destroy, errorPage, errorPage, getUrl, newElement, process, redirect, redirect, returnConn
 
Methods inherited from class com.xmlserv.main.XMLServBackendImpl
addParam, getParam, getReqCount, getStatus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasketCleanup

public BasketCleanup()
Create empty object. init() must be called before this object can be used.
Method Detail

init

public void init()
          throws javax.servlet.ServletException
Initialize object.
Overrides:
init in class AppBase
Following copied from class: com.xmlserv.app.AppBase
Throws:
javax.servlet.ServletException - On any error.
See Also:
PGConnectionPool

process

public org.jdom.Document process(javax.servlet.ServletContext context,
                                 javax.servlet.http.HttpServletRequest req,
                                 SecurityManager securitymanager)
                          throws XMLServException,
                                 javax.servlet.ServletException,
                                 java.io.IOException
Cleanup baskets for thi user. This means delete baskets which are empty, have no name and are older than 24h. The following HTTP parameters are recognized:
Overrides:
process in class AppBase
See Also:
XMLServBackendImpl.process(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, com.xmlserv.security.SecurityManager)