org.rhq.enterprise.gui.startup
Class StartupServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.rhq.enterprise.gui.startup.StartupServlet
- All Implemented Interfaces:
- Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class StartupServlet
- extends javax.servlet.http.HttpServlet
This servlet is ensured to be initialized after the rest of the RHQ Server has been deployed and started.
Specifically, we know that at init() time, all EJBs have been deployed and available.
This also accepts requests and responds with information regarding the state of the startup.
- See Also:
- Serialized Form
|
Method Summary |
void |
init()
Performs the final RHQ Server initialization work that needs to talk place. |
protected void |
service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
This merely returns an HTTP status code to indicate the status of the startup. |
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service |
| Methods inherited from class javax.servlet.GenericServlet |
destroy, 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 |
StartupServlet
public StartupServlet()
service
protected void service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
IOException
- This merely returns an HTTP status code to indicate the status of the startup.
Under normal conditions, this will always return a 200 status code.
- Overrides:
service in class javax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
init
public void init()
throws javax.servlet.ServletException
- Performs the final RHQ Server initialization work that needs to talk place. EJBs are available in this method.
- Overrides:
init in class javax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.