org.exist
Class DatabaseAdminServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byorg.exist.DatabaseAdminServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class DatabaseAdminServlet
extends javax.servlet.http.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

Field Summary
protected  java.lang.String confFile
           
protected  Configuration configuration
           
protected  java.lang.String dbHome
           
 
Constructor Summary
DatabaseAdminServlet()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void init(javax.servlet.ServletConfig config)
          Initialize the servlet.
 
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, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

confFile

protected java.lang.String confFile

configuration

protected Configuration configuration

dbHome

protected java.lang.String dbHome
Constructor Detail

DatabaseAdminServlet

public DatabaseAdminServlet()
Method Detail

doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws javax.servlet.ServletException,
                  java.io.IOException
Throws:
javax.servlet.ServletException
java.io.IOException

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.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.

Throws:
javax.servlet.ServletException
See Also:
Servlet.init(ServletConfig)


Copyright (C) Wolfgang Meier. All rights reserved.