org.apache.xindice.server
Class XindiceServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.xindice.server.XindiceServlet
- All Implemented Interfaces:
- Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- public class XindiceServlet
- extends javax.servlet.http.HttpServlet
A HttpServlet
that enables XML-RPC access to a Xindice
database instance.
- Version:
- $Revision: 595817 $, $Date: 2007-11-16 15:49:03 -0500 (Fri, 16 Nov 2007) $
- Author:
- Kimbro Staken, Vladimir R. Bossicard, Gianugo Rabellino, Vadim Gritsenko
- See Also:
- Serialized Form
Method Summary |
void |
destroy()
|
void |
init(javax.servlet.ServletConfig servletConfig)
Initializes database |
Configuration |
loadConfiguration(javax.servlet.ServletConfig servletConfig)
Loads the Xindice configuration file. |
void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process request. |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service |
Methods inherited from class javax.servlet.GenericServlet |
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 |
server
protected org.apache.xmlrpc.webserver.XmlRpcServletServer server
webAdmin
protected WebAdminManager webAdmin
XindiceServlet
public XindiceServlet()
init
public void init(javax.servlet.ServletConfig servletConfig)
throws javax.servlet.ServletException
- Initializes database
- Throws:
javax.servlet.ServletException
loadConfiguration
public Configuration loadConfiguration(javax.servlet.ServletConfig servletConfig)
throws javax.servlet.ServletException
- Loads the Xindice configuration file. The file is searched in the following locations:
- the System.getProperty(Xindice.PROP_XINDICE_CONFIGURATION) system property.
- the ServletConfig.getInitParameter(Xindice.PROP_XINDICE_CONFIGURATION) servlet
configuration parameter in web.xml file.
- default configuration stored in the Xindice class
- Parameters:
servletConfig
- servlet configuration
- Returns:
- Xindice configuration
- Throws:
javax.servlet.ServletException
- if unable to load configuration
destroy
public void destroy()
service
public void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
javax.servlet.ServletException
- Process request. Determine type of a request and delegate for processing
either to XML-RPC server, WebDAV, or WebAdmin.
- Parameters:
request
- a HttpServletRequest instanceresponse
- a HttpServletResponse instance
- Throws:
IOException
- if an IO error occurs
javax.servlet.ServletException
- if a servlet error occurs
Copyright (c) 1999-2007 The Apache Software Foundation. All Rights Reserved.