Class StartupServlet

  • All Implemented Interfaces:
    Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    public class StartupServlet
    extends javax.servlet.http.HttpServlet
    Servlet that responsible for maintenance screens during TeamCity server startup.
    Since:
    7.1
    Author:
    Leonid Bushuev from JetBrains
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      class  StartupServlet.AjaxBean
      A separate bean instance is created per HTTP request.
    • Constructor Summary

      Constructors 
      Constructor Description
      StartupServlet()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void destroy()  
      protected void doGet​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)  
      protected void doGetOrPost​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)  
      protected void doPost​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)  
      void init​(javax.servlet.ServletConfig config)  
      • 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
    • Field Detail

      • USER_SESSION_ORIGINAL_INACTIVITY_INTERVAL_ATTR_NAME

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

      • StartupServlet

        public StartupServlet()
    • Method Detail

      • init

        public void init​(javax.servlet.ServletConfig config)
                  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
      • doPost

        protected void doPost​(javax.servlet.http.HttpServletRequest request,
                              javax.servlet.http.HttpServletResponse response)
                       throws javax.servlet.ServletException,
                              IOException
        Overrides:
        doPost in class javax.servlet.http.HttpServlet
        Throws:
        javax.servlet.ServletException
        IOException
      • doGet

        protected void doGet​(javax.servlet.http.HttpServletRequest request,
                             javax.servlet.http.HttpServletResponse response)
                      throws javax.servlet.ServletException,
                             IOException
        Overrides:
        doGet in class javax.servlet.http.HttpServlet
        Throws:
        javax.servlet.ServletException
        IOException
      • doGetOrPost

        protected void doGetOrPost​(@NotNull
                                   javax.servlet.http.HttpServletRequest request,
                                   @NotNull
                                   javax.servlet.http.HttpServletResponse response)
                            throws javax.servlet.ServletException,
                                   IOException
        Throws:
        javax.servlet.ServletException
        IOException