com.arsdigita.web
Class LegacyAdapterServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.arsdigita.web.BaseServlet
com.arsdigita.web.BaseApplicationServlet
com.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
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 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 |
versionId
public static final String versionId
- See Also:
- Constant Field Values
LegacyAdapterServlet
public LegacyAdapterServlet()
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