org.exist.http.servlets
Class DatabaseAdminServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
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
DatabaseAdminServlet
public DatabaseAdminServlet()
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.