org.exist.http.servlets
Class Log4jInit

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.exist.http.servlets.Log4jInit
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class Log4jInit
extends HttpServlet

Helper servlet for initializing the log4j framework in a webcontainer.

See Also:
Serialized Form

Constructor Summary
Log4jInit()
           
 
Method Summary
 void doGet(HttpServletRequest req, HttpServletResponse res)
          Empty method.
 void init()
          Initialize servlet for log4j purposes in servlet container (war file).
 boolean isInWarFile()
          Check wether exist runs in Servlet container (as war file).
 
Methods inherited from class javax.servlet.http.HttpServlet
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Log4jInit

public Log4jInit()
Method Detail

init

public void init()
          throws ServletException
Initialize servlet for log4j purposes in servlet container (war file).

Overrides:
init in class GenericServlet
Throws:
ServletException

isInWarFile

public boolean isInWarFile()
Check wether exist runs in Servlet container (as war file).

Returns:
TRUE if exist runs in servlet container.

doGet

public void doGet(HttpServletRequest req,
                  HttpServletResponse res)
Empty method.

Overrides:
doGet in class HttpServlet
Parameters:
req - HTTP Request object
res - HTTP Response object


Copyright (C) Wolfgang Meier. All rights reserved.