com.xmlserv.app.download
Class Download
java.lang.Object
|
+--com.xmlserv.main.XMLServBackendImpl
|
+--com.xmlserv.app.AppBase
|
+--com.xmlserv.app.download.Download
- All Implemented Interfaces:
- XMLServBackend
- public class Download
- extends AppBase
Download an Image previously selected via basket.
These downloads expire after some time (configuration parameter 'expire' in days).
Counting starts with the timestamp the basket was marked completed.
Downloads are logged using DownloadLog.
Parameter is the downloadid for an image. This identifies the image via the
basket/basket_contents/basket_content/formats tables.
This app must be marked in the config file.
- Version:
- $Id: Download.java,v 1.4 2002/09/06 19:08:58 muecke Exp $
- Author:
- Wolfram Saringer
Constructor Summary |
Download()
Create empty object.
init() must be called before this object can be used. |
Method Summary |
void |
init()
Initialize object. |
javax.xml.transform.Source |
process(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
SecurityManager securitymanager)
Main processing method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Download
public Download()
- Create empty object.
init() must be called before this object can be used.
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 javax.xml.transform.Source process(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
SecurityManager securitymanager)
throws XMLServException,
javax.servlet.ServletException,
java.io.IOException
- Main processing method.
- Overrides:
process
in class AppBase
- See Also:
XMLServBackendImpl.process(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, com.xmlserv.security.SecurityManager)