pandora
Class NeighborCtrl

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

public class NeighborCtrl
extends javax.servlet.http.HttpServlet

Controller servlet used in combination with NeighborBean (model) and neighbor. jsp (view).

Copyright (c) 2002-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 neighbor.jsp
(package private)  PageBoxAPI inst
          PageBox API instance
(package private)  PageBoxLib.LogIF log
          Logging object
(package private)  NeighborBean nb
          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
NeighborCtrl()
           
 
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.
 
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 neighbor.jsp


inst

PageBoxAPI inst
PageBox API instance


log

PageBoxLib.LogIF log
Logging object


workDir

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


ctx

javax.servlet.ServletContext ctx
Unique to the Web application


nb

NeighborBean nb
Model object

Constructor Detail

NeighborCtrl

public NeighborCtrl()
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