org.exist.http.servlets
Class DatabaseAdminServlet

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

public class DatabaseAdminServlet
extends HttpServlet

Servlet to configure eXist. Use this servlet in a web application to launch the database at startup.

Author:
Wolfgang Meier
See Also:
Serialized Form

Constructor Summary
DatabaseAdminServlet()
           
 
Method Summary
 void destroy()
           
 void doGet(HttpServletRequest request, HttpServletResponse response)
           
 void init(ServletConfig config)
          Initialize the servlet.
 
Methods inherited from class javax.servlet.http.HttpServlet
service
 
Methods inherited from class javax.servlet.GenericServlet
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

DatabaseAdminServlet

public DatabaseAdminServlet()
Method Detail

doGet

public void doGet(HttpServletRequest request,
                  HttpServletResponse response)
           throws ServletException,
                  IOException
Overrides:
doGet in class HttpServlet
Throws:
ServletException
IOException

init

public void init(ServletConfig config)
          throws ServletException
Initialize the servlet. Tries to determine the base directory for eXist (usually WEB-INF) and the location of the configuration file. If a valid configuration is found, the database is launched by configuring the pool of database brokers. In web.xml, add the option 2 for the servlet to be loaded on server startup.

Specified by:
init in interface Servlet
Overrides:
init in class GenericServlet
Throws:
ServletException
See Also:
Servlet.init(ServletConfig)

destroy

public void destroy()
Specified by:
destroy in interface Servlet
Overrides:
destroy in class GenericServlet


Copyright (C) Wolfgang Meier. All rights reserved.