org.ourgrid.webstatus
Class WebStatusServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.ourgrid.webstatus.WebStatusServlet
All Implemented Interfaces:
java.io.Serializable, java.util.EventListener, javax.servlet.Servlet, javax.servlet.ServletConfig, javax.servlet.ServletContextListener

public class WebStatusServlet
extends javax.servlet.http.HttpServlet
implements javax.servlet.ServletContextListener

Description: A servlet class designed to generate the WebStatus html page.

See Also:
Serialized Form

Constructor Summary
WebStatusServlet()
           
 
Method Summary
 void contextDestroyed(javax.servlet.ServletContextEvent arg0)
           
 void contextInitialized(javax.servlet.ServletContextEvent arg0)
           
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          We are going to perform the same operations for POST requests as for GET methods, so this method just sends the request to the doGet method.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebStatusServlet

public WebStatusServlet()
Method Detail

doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws java.io.IOException,
                  javax.servlet.ServletException
Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
java.io.IOException
javax.servlet.ServletException
See Also:
HttpServlet.doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

doPost

public void doPost(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
            throws java.io.IOException,
                   javax.servlet.ServletException
We are going to perform the same operations for POST requests as for GET methods, so this method just sends the request to the doGet method.

Overrides:
doPost in class javax.servlet.http.HttpServlet
Throws:
java.io.IOException
javax.servlet.ServletException

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent arg0)
Specified by:
contextInitialized in interface javax.servlet.ServletContextListener

contextDestroyed

public void contextDestroyed(javax.servlet.ServletContextEvent arg0)
Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener