public class LifecycleDispatcherServlet
extends javax.servlet.http.HttpServlet
SpringMVC is started standalone by this servlet. It is assumed that no ContextLoaderListener
has been registered and prepared a root WebApplicationContext and that the SpringMVC context should
be used as the root.
When using this servlet, LifecycleDelegatingFilterProxy and LifecycleHttpRequestHandlerServlet
should be used in place of Spring's DelegatingFilterProxy and HttpRequestHandlerServlet. The
lifecycle versions automatically defer attempting to bind to their associated beans until the application has
started.
| Constructor and Description |
|---|
LifecycleDispatcherServlet() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
init() |
protected void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, servicepublic void destroy()
destroy in interface javax.servlet.Servletdestroy in class javax.servlet.GenericServletpublic void init()
throws javax.servlet.ServletException
init in class javax.servlet.GenericServletjavax.servlet.ServletExceptionprotected void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
service in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionCopyright © 2017 Atlassian. All rights reserved.