com.arsdigita.cms.dispatcher
Class StreamImage

java.lang.Object
  extended bycom.arsdigita.cms.dispatcher.ResourceHandlerImpl
      extended bycom.arsdigita.cms.dispatcher.StreamImage
All Implemented Interfaces:
com.arsdigita.dispatcher.Dispatcher, ResourceHandler

public class StreamImage
extends ResourceHandlerImpl

A resource handler which streams out a blob from the database.

Version:
$Revision: #19 $ $DateTime: 2004/04/07 16:07:11 $
Author:
Stanislav Freidin (sfreidin@arsdigita.com), Michael Pih (pihman@arsdigita.com)

Field Summary
static String IMAGE_ID
           
static String OBJECT_ID
           
static String OID_PARAM
           
static String TRANSACTION_ID
           
static String versionId
           
 
Constructor Summary
StreamImage()
          Construct the resource handler
 
Method Summary
 void dispatch(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, com.arsdigita.dispatcher.RequestContext actx)
          Streams an image from the database.
 
Methods inherited from class com.arsdigita.cms.dispatcher.ResourceHandlerImpl
checkUserAccess, getContentItem, getContentSection, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values

IMAGE_ID

public static final String IMAGE_ID
See Also:
Constant Field Values

OID_PARAM

public static final String OID_PARAM
See Also:
Constant Field Values

TRANSACTION_ID

public static final String TRANSACTION_ID
See Also:
Constant Field Values

OBJECT_ID

public static final String OBJECT_ID
See Also:
Constant Field Values
Constructor Detail

StreamImage

public StreamImage()
Construct the resource handler

Method Detail

dispatch

public void dispatch(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response,
                     com.arsdigita.dispatcher.RequestContext actx)
              throws IOException,
                     javax.servlet.ServletException
Streams an image from the database.

Specified by:
dispatch in interface com.arsdigita.dispatcher.Dispatcher
Specified by:
dispatch in class ResourceHandlerImpl
Parameters:
request - The servlet request object
response - the servlet response object
actx - The request context
Throws:
IOException
javax.servlet.ServletException


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 19 2004:2352 UTC