com.arsdigita.cms.dispatcher
Class ResourceHandlerImpl

java.lang.Object
  extended bycom.arsdigita.cms.dispatcher.ResourceHandlerImpl
All Implemented Interfaces:
com.arsdigita.dispatcher.Dispatcher, ResourceHandler
Direct Known Subclasses:
com.arsdigita.cms.dispatcher.BaseAsset, ItemXML, StreamImage

public abstract class ResourceHandlerImpl
extends Object
implements ResourceHandler

An interface for resources that can be served.

Version:
$Revision: #9 $ $DateTime: 2004/04/07 16:07:11 $
Author:
Michael Pih (pihman@arsdigita.com)

Field Summary
static String versionId
           
 
Constructor Summary
ResourceHandlerImpl()
           
 
Method Summary
 void checkUserAccess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, com.arsdigita.dispatcher.RequestContext actx, ContentItem item)
           
abstract  void dispatch(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, com.arsdigita.dispatcher.RequestContext actx)
          Services this resource.
 ContentItem getContentItem(javax.servlet.http.HttpServletRequest request)
          Fetch the request-local content item.
 ContentSection getContentSection(javax.servlet.http.HttpServletRequest request)
          Fetch the request-local content section.
 void init()
          This method is called by the Dispatcher that initializes this page.
 
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
Constructor Detail

ResourceHandlerImpl

public ResourceHandlerImpl()
Method Detail

init

public void init()
          throws javax.servlet.ServletException
This method is called by the Dispatcher that initializes this page.

Specified by:
init in interface ResourceHandler
Throws:
javax.servlet.ServletException

getContentSection

public ContentSection getContentSection(javax.servlet.http.HttpServletRequest request)
Fetch the request-local content section.

Specified by:
getContentSection in interface ResourceHandler
Parameters:
request - The HTTP request
Returns:
The current content section

getContentItem

public ContentItem getContentItem(javax.servlet.http.HttpServletRequest request)
Fetch the request-local content item.

Specified by:
getContentItem in interface ResourceHandler
Parameters:
request - The HTTP request
Returns:
The current content item

checkUserAccess

public void checkUserAccess(javax.servlet.http.HttpServletRequest request,
                            javax.servlet.http.HttpServletResponse response,
                            com.arsdigita.dispatcher.RequestContext actx,
                            ContentItem item)

dispatch

public abstract void dispatch(javax.servlet.http.HttpServletRequest request,
                              javax.servlet.http.HttpServletResponse response,
                              com.arsdigita.dispatcher.RequestContext actx)
                       throws IOException,
                              javax.servlet.ServletException
Services this resource.

Specified by:
dispatch in interface com.arsdigita.dispatcher.Dispatcher
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 21 2004:2352 UTC