Class StartupServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- jetbrains.buildServer.maintenance.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.
-
Field Summary
Fields Modifier and Type Field Description static String
MAINTENANCE_TOKEN_COOKIE
static String
USER_SESSION_ORIGINAL_INACTIVITY_INTERVAL_ATTR_NAME
-
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
-
-
-
-
Field Detail
-
MAINTENANCE_TOKEN_COOKIE
public static final String MAINTENANCE_TOKEN_COOKIE
- See Also:
- Constant Field Values
-
USER_SESSION_ORIGINAL_INACTIVITY_INTERVAL_ATTR_NAME
public static final String USER_SESSION_ORIGINAL_INACTIVITY_INTERVAL_ATTR_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
- Specified by:
init
in interfacejavax.servlet.Servlet
- Overrides:
init
in classjavax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
-
destroy
public void destroy()
- Specified by:
destroy
in interfacejavax.servlet.Servlet
- Overrides:
destroy
in classjavax.servlet.GenericServlet
-
doPost
protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
- Overrides:
doPost
in classjavax.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 classjavax.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
-
-