Tynamo™-TINI
v1.0.4

com.qindesign.servlet.example
Class NetBootInclude

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

public class NetBootInclude
extends OneWireSensorInclude

Provides web access to NetBoot devices. This is designed to work with the OneWireServlet example.

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

Constructor Summary
NetBootInclude()
           
 
Method Summary
 void destroy()
          Performs some cleanup.
protected  void doContainerGet(OneWireContainer c, HttpServletRequest req, HttpServletResponse resp, ServletOutputStream out)
          Performs the include just after printing the header.
 void init()
          Initialize the servlet.
 
Methods inherited from class com.qindesign.servlet.example.OneWireSensorInclude
doGet, doPost
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
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

NetBootInclude

public NetBootInclude()
Method Detail

init

public void init()
          throws ServletException
Initialize the servlet. This creates and fills a byte array with 0xff's, to be used when reading from the device.

Overrides:
init in class GenericServlet
Throws:
ServletException

destroy

public void destroy()
Performs some cleanup.

Specified by:
destroy in interface Servlet
Overrides:
destroy in class GenericServlet

doContainerGet

protected void doContainerGet(OneWireContainer c,
                              HttpServletRequest req,
                              HttpServletResponse resp,
                              ServletOutputStream out)
                       throws IOException,
                              OneWireException
Description copied from class: OneWireSensorInclude
Performs the include just after printing the header. This is the method that subclasses need to implement in order to processes a request.

Specified by:
doContainerGet in class OneWireSensorInclude
Throws:
IOException
OneWireException

Tynamo™-TINI
v1.0.4

© 2001-2007 Shawn Silverman