org.scrashmeow.ojb.console
Class LogInitializationServlet

java.lang.Object
  |
  +--HttpServlet
        |
        +--org.scrashmeow.ojb.console.LogInitializationServlet

public class LogInitializationServlet
extends HttpServlet

Simple servlet to initialize the log4j sub system.

Author:
Alexander Bibighaus
See Also:
Serialized Form

Constructor Summary
LogInitializationServlet()
           
 
Method Summary
 void doGet(HttpServletRequest req, HttpServletResponse res)
          This servlet should not handle an HTTP GET.
 void doPost(HttpServletRequest req, HttpServletResponse res)
          This servlet should not handle an HTTP GET.
 void init()
          Initialize log4j by finding the configuration parameter in the web.xml and using that value for log4j.properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogInitializationServlet

public LogInitializationServlet()
Method Detail

init

public void init()
Initialize log4j by finding the configuration parameter in the web.xml and using that value for log4j.properties. Initialize Log4j. Check the servlet's log file if log4j fails to initialize.


doGet

public void doGet(HttpServletRequest req,
                  HttpServletResponse res)
This servlet should not handle an HTTP GET. NoOp

Parameters:
req - the current request
res - the current response

doPost

public void doPost(HttpServletRequest req,
                   HttpServletResponse res)
This servlet should not handle an HTTP GET. NoOp

Parameters:
req - the current request
res - the current response


Copyright © 2003 Alexander Bibighaus et al. All Rights Reserved.