Tynamo™-TINI
v1.0.4

com.qindesign.servlet.example
Class FamilyCode20Include

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.FamilyCode20Include
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class FamilyCode20Include
extends OneWireSensorInclude

Provides web access to family code 0x20 1-Wire devices (quad A/D converter). To speed things up over ADInclude, this takes advantage of some known things about the container, such as its resolution list.

This is designed to work with the OneWireServlet example.

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

Constructor Summary
FamilyCode20Include()
           
 
Method Summary
 void destroy()
          Destroys any resources consumed by the init() method.
protected  void doContainerGet(OneWireContainer c, HttpServletRequest req, HttpServletResponse resp, ServletOutputStream out)
          Performs the include just after printing the header.
 void init()
          Initializes the servlet by pre-preparing some common HTML.
 
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

FamilyCode20Include

public FamilyCode20Include()
Method Detail

init

public void init()
          throws ServletException
Initializes the servlet by pre-preparing some common HTML.

Overrides:
init in class GenericServlet
Throws:
ServletException

destroy

public void destroy()
Destroys any resources consumed by the init() method.

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