com.atlassian.confluence.servlet
Class SpringManagedServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.atlassian.confluence.servlet.SpringManagedServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class SpringManagedServlet
extends javax.servlet.http.HttpServlet

Servlet that defers all its execution to a Spring-bean. The bean is specified by the "springComponentName" servlet init parameter, and must implement the ServletManager interface.

Primarily used for the SOAP and XML-RPC servlets, as their lifecycle has to be managed through the Spring container as plugins are reloaded.

See Also:
Serialized Form

Field Summary
static String COMPONENT_NAME_KEY
           
static org.apache.log4j.Category log
           
 
Constructor Summary
SpringManagedServlet()
           
 
Method Summary
 void destroy()
           
 void init(javax.servlet.ServletConfig servletConfig)
           
 void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, 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

COMPONENT_NAME_KEY

public static final String COMPONENT_NAME_KEY
See Also:
Constant Field Values

log

public static final org.apache.log4j.Category log
Constructor Detail

SpringManagedServlet

public SpringManagedServlet()
Method Detail

init

public void init(javax.servlet.ServletConfig servletConfig)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException

destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Servlet
Overrides:
destroy in class javax.servlet.GenericServlet

service

public void service(javax.servlet.http.HttpServletRequest request,
                    javax.servlet.http.HttpServletResponse response)
             throws javax.servlet.ServletException,
                    IOException
Overrides:
service in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
IOException


Copyright © 2003-2013 Atlassian. All Rights Reserved.