com.arsdigita.web
Class ResourceServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended bycom.arsdigita.web.BaseServlet
              extended bycom.arsdigita.web.ResourceServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ResourceServlet
extends BaseServlet

A servlet that maps the ResourceManager#findResource method into the http:// URL space. This enables negotiated resolution of resources across webapps. For example, a request to:

   http://www.example.com/resource/myproj,ccm-cms,ROOT/packages/bebop/xsl/bebop.xsl
 
Will look for the following real files:
   http://www.example.com/myproj/packages/bebop/xsl/bebop.xsl
   http://www.example.com/ccm-cms/packages/bebop/xsl/bebop.xsl
   http://www.example.com/packages/bebop/xsl/bebop.xsl
 

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.arsdigita.web.BaseServlet
REQUEST_URL_ATTRIBUTE, versionId
 
Constructor Summary
ResourceServlet()
           
 
Method Summary
protected  void doService(javax.servlet.http.HttpServletRequest sreq, javax.servlet.http.HttpServletResponse sresp)
          The method that BaseServlet.doGet(HttpServletRequest,HttpServletResponse) and BaseServlet.doPost(HttpServletRequest,HttpServletResponse) call.
 
Methods inherited from class com.arsdigita.web.BaseServlet
destroy, doDestroy, doGet, doInit, doPost, getUserContext, init
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceServlet

public ResourceServlet()
Method Detail

doService

protected void doService(javax.servlet.http.HttpServletRequest sreq,
                         javax.servlet.http.HttpServletResponse sresp)
                  throws javax.servlet.ServletException,
                         IOException
Description copied from class: BaseServlet

The method that BaseServlet.doGet(HttpServletRequest,HttpServletResponse) and BaseServlet.doPost(HttpServletRequest,HttpServletResponse) call. This is the extension point for users of this class.

Overrides:
doService in class BaseServlet
Throws:
javax.servlet.ServletException
IOException


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