com.xmlserv.app.images
Class ImageGet

java.lang.Object
  |
  +--com.xmlserv.main.XMLServBackendImpl
        |
        +--com.xmlserv.app.AppBase
              |
              +--com.xmlserv.app.images.ImageGet
All Implemented Interfaces:
XMLServBackend
Direct Known Subclasses:
ImageDownload, ImagePreview, ImageShow

public abstract class ImageGet
extends AppBase

Base class for all Image downlaod realted classes (ImagePreview, ImageDownload etc.). The abstract methods are used to determine the filename and the mimetype to send back.


Constructor Summary
ImageGet()
           
 
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.
 org.jdom.Document process(javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest req, SecurityManager securitymanager)
          This is the method to override in subclasses.
 
Methods inherited from class com.xmlserv.app.AppBase
checkoutConn, destroy, errorPage, errorPage, getUrl, newElement, 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

ImageGet

public ImageGet()
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
Description copied from class: XMLServBackendImpl
This is the method to override in subclasses.
Overrides:
process in class AppBase
Following copied from class: com.xmlserv.main.XMLServBackendImpl
Parameters:
context - The servlet context.
req - The HTTP request.
securitymanager - The SecurityManager instance associated with this object.
Returns:
An XML document.
Throws:
XMLServException - Indicates an error condition in the business logic.
javax.servlet.ServletException - A generic failure.
java.io.IOException - Any I/O error condition.

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)