com.arsdigita.web
Class LegacyAdapterServlet

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

public class LegacyAdapterServlet
extends BaseApplicationServlet

An application servlet that does what SiteNodeDispatcher does but in the context of the newer CCM dispatcher. Gets the package type associated with an application and uses its dispatcher.

Use web.xml entries like the following to deploy this servlet:

 <servlet>
   <servlet-name>legacy-adapter</servlet-name>
   <servlet-class>com.arsdigita.web.LegacyAdapterServlet</servlet-class>
 </servlet>

 <servlet-mapping>
   <servlet-name>legacy-adapter</servlet-name>
   <url-pattern>/__ccm__/servlet/legacy-adapter/*</url-pattern>
 </servlet-mapping>
 

Author:
Justin Ross <jross@redhat.com>
See Also:
DispatcherServlet, SiteNodeDispatcher, Serialized Form

Field Summary
static String versionId
           
 
Fields inherited from class com.arsdigita.web.BaseApplicationServlet
APPLICATION_ID_ATTRIBUTE, APPLICATION_ID_PARAMETER
 
Fields inherited from class com.arsdigita.web.BaseServlet
REQUEST_URL_ATTRIBUTE
 
Constructor Summary
LegacyAdapterServlet()
           
 
Method Summary
 void doService(javax.servlet.http.HttpServletRequest sreq, javax.servlet.http.HttpServletResponse sresp, Application app)
          Fetches the dispatcher for the package type of the current application and dispatches to it with the RequestContext constructed in BaseApplicationServlet.
 
Methods inherited from class com.arsdigita.web.BaseApplicationServlet
doService
 
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
 

Field Detail

versionId

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

LegacyAdapterServlet

public LegacyAdapterServlet()
Method Detail

doService

public void doService(javax.servlet.http.HttpServletRequest sreq,
                      javax.servlet.http.HttpServletResponse sresp,
                      Application app)
               throws javax.servlet.ServletException,
                      IOException

Fetches the dispatcher for the package type of the current application and dispatches to it with the RequestContext constructed in BaseApplicationServlet.

Specified by:
doService in class BaseApplicationServlet
Parameters:
app - The application which is being served.
Throws:
javax.servlet.ServletException
IOException
See Also:
HttpServlet.service(HttpServletRequest,HttpServletResponse)


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