epimetheus
Class SerialCtrl

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--epimetheus.SerialCtrl
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class SerialCtrl
extends javax.servlet.http.HttpServlet

Controller servlet used in combination with SerialBean (model) and serial.jsp (view) to display the serial ports of the host.

Copyright (c) 2003 Alexis Grandemange

This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU Lesser General Public License
 as published by the Free Software Foundation; version 2.1 of the
 License.
 This library is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 GNU Lesser General Public License for more details.
 A copy of the GNU Lesser General Public License lesser.txt should be
 included in the distribution.

Version:
0, 0, 3
Author:
Alexis Grandemange
See Also:
Serialized Form

Field Summary
(package private)  javax.servlet.ServletContext ctx
          Unique to the Web application
(package private)  javax.servlet.RequestDispatcher dispatcher
          Dispatcher to contact.jsp
(package private)  ExtensionIF ei
          Extension instance
(package private)  PageBoxAPI inst
          PageBox API instance
(package private)  PageBoxLib.LogIF log
          Logging object
(package private)  SerialBean sb
          Model object
(package private)  java.lang.String workDir
          Directory where API.txt is defined
 
Fields inherited from class javax.servlet.http.HttpServlet
 
Fields inherited from class javax.servlet.GenericServlet
 
Constructor Summary
SerialCtrl()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          GET request handling.
 void init(javax.servlet.ServletConfig config)
          Invoked by Servlet container.
(package private)  java.lang.String initialize()
          Get a PageBoxAPI and a DataSource.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, 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
 

Field Detail

dispatcher

javax.servlet.RequestDispatcher dispatcher
Dispatcher to contact.jsp


inst

PageBoxAPI inst
PageBox API instance


log

PageBoxLib.LogIF log
Logging object


ctx

javax.servlet.ServletContext ctx
Unique to the Web application


sb

SerialBean sb
Model object


workDir

java.lang.String workDir
Directory where API.txt is defined


ei

ExtensionIF ei
Extension instance

Constructor Detail

SerialCtrl

public SerialCtrl()
Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Invoked by Servlet container.

Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class javax.servlet.GenericServlet
Parameters:
config - servlet configuration
javax.servlet.ServletException

doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws javax.servlet.ServletException,
                  java.io.IOException
GET request handling.

Overrides:
doGet in class javax.servlet.http.HttpServlet
Parameters:
request - HttpServletRequest
response - HttpServletResponse
javax.servlet.ServletException
java.io.IOException

initialize

java.lang.String initialize()
Get a PageBoxAPI and a DataSource.

Returns:
null or error message