Tynamo™-TINI
v1.0.4

com.qindesign.servlet.example
Class ToggleLEDServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.qindesign.servlet.example.ToggleLEDServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class ToggleLEDServlet
extends HttpServlet

This servlet toggles the CPU status LED on the TINI module.

Version:
1.0.4
Author:
Shawn Silverman
See Also:
Serialized Form

Constructor Summary
ToggleLEDServlet()
           
 
Method Summary
protected  void doGet(HttpServletRequest req, HttpServletResponse resp)
          Process a GET request.
protected  void doPost(HttpServletRequest req, HttpServletResponse resp)
          Calls the GET handler.
 void init()
          Access the appropriate bit on the CPU.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doOptions, doPut, doTrace, getLastModified, service, 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
 

Constructor Detail

ToggleLEDServlet

public ToggleLEDServlet()
Method Detail

init

public void init()
          throws ServletException
Access the appropriate bit on the CPU.

Overrides:
init in class GenericServlet
Throws:
ServletException - if an unknown CPU is detected.

doPost

protected void doPost(HttpServletRequest req,
                      HttpServletResponse resp)
               throws ServletException,
                      IOException
Calls the GET handler.

Overrides:
doPost in class HttpServlet
Throws:
ServletException
IOException

doGet

protected void doGet(HttpServletRequest req,
                     HttpServletResponse resp)
              throws ServletException,
                     IOException
Process a GET request.

Overrides:
doGet in class HttpServlet
Throws:
ServletException
IOException

Tynamo™-TINI
v1.0.4

© 2001-2007 Shawn Silverman