com.xmlserv.app.images
Class ImagePreview

java.lang.Object
  |
  +--com.xmlserv.main.XMLServBackendImpl
        |
        +--com.xmlserv.app.AppBase
              |
              +--com.xmlserv.app.images.ImageGet
                    |
                    +--com.xmlserv.app.images.ImagePreview
All Implemented Interfaces:
XMLServBackend

public class ImagePreview
extends ImageGet

Send the preview image to client. This requires the option binaryoutput in the config.xml entry for this Backend.

Version:
$Id: ImagePreview.java,v 1.6 2002/11/14 17:03:35 muecke Exp $
Author:
Wolfram Saringer

Constructor Summary
ImagePreview()
          Create empty object. init() must be called before this object can be used.
 
Method Summary
 java.lang.String getFilename(Image img, javax.servlet.http.HttpServletRequest req, SecurityManager securitymanager)
           
 java.lang.String getMimetype(Image img, javax.servlet.http.HttpServletRequest req, SecurityManager securitymanager)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class com.xmlserv.app.images.ImageGet
init, process, process
 
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

ImagePreview

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

getFilename

public java.lang.String getFilename(Image img,
                                    javax.servlet.http.HttpServletRequest req,
                                    SecurityManager securitymanager)
                             throws XMLServException

getMimetype

public java.lang.String getMimetype(Image img,
                                    javax.servlet.http.HttpServletRequest req,
                                    SecurityManager securitymanager)
                             throws XMLServException

main

public static void main(java.lang.String[] args)