org.mbari.siam.configt
Class BasicServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.mbari.siam.configt.BasicServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class BasicServlet
extends javax.servlet.http.HttpServlet

See Also:
Serialized Form

Field Summary
protected static org.apache.log4j.Logger _logger
          Log4J logger
 
Constructor Summary
BasicServlet()
           
 
Method Summary
protected  void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Handler for HTTP GET request
protected  java.util.Properties getProperties()
          Load servlet configuration from configtool.properties
 java.lang.String getServletInfo()
          Servlet version info
 void init()
          Servlet initialization.
protected  void loadProperties()
          Load servlet configuration from configtool.properties
static void main(java.lang.String[] args)
           
 
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, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_logger

protected static org.apache.log4j.Logger _logger
Log4J logger

Constructor Detail

BasicServlet

public BasicServlet()
Method Detail

init

public void init()
          throws javax.servlet.ServletException
Servlet initialization. Called during servlet instantiation by server's servlet container and whenever user re-initializes servlet.

Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException

doGet

protected void doGet(javax.servlet.http.HttpServletRequest req,
                     javax.servlet.http.HttpServletResponse res)
              throws javax.servlet.ServletException,
                     java.io.IOException
Handler for HTTP GET request

Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
java.io.IOException

getServletInfo

public java.lang.String getServletInfo()
Servlet version info

Specified by:
getServletInfo in interface javax.servlet.Servlet
Overrides:
getServletInfo in class javax.servlet.GenericServlet

getProperties

protected java.util.Properties getProperties()
Load servlet configuration from configtool.properties


loadProperties

protected void loadProperties()
                       throws java.lang.Exception
Load servlet configuration from configtool.properties

Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.