com.xmlserv.app.images
Class ImageGetAlt

java.lang.Object
  |
  +--com.xmlserv.main.XMLServBackendImpl
        |
        +--com.xmlserv.app.AppBase
              |
              +--com.xmlserv.app.images.ImageGetAlt
All Implemented Interfaces:
XMLServBackend
Direct Known Subclasses:
ImageShowAlt

public abstract class ImageGetAlt
extends AppBase

Different implementation: Read parameters as extended path info, ignoring the part after the last slash. This is done to simulate normal URLs for IE, which is too stupid to believe in the servers announced MIME type etc.
The URLs have the following form:
/xmlserv/imageshowalt@/<id>/<format>/<dummy image name>
wherer id and format are the same arguments as used by ImageShow. The at sign is used to delimmit the mapped URL for XMLServ backend handling.

See Also:
com.xmlerv.app.image.ImageShow

Constructor Summary
ImageGetAlt()
           
 
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

ImageGetAlt

public ImageGetAlt()
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)